Skip to main content

echo

Output strings to standard output.

Usage

echo [option] [string]...
-n do not output the trailing newline

Options

OptionDescription
-nSuppress trailing newline

Notes

  • Arguments are space-separated, followed by \r\n
  • The -n option suppresses the trailing newline

Examples

# Output text
echo Hello World

# Output without newline
echo -n Hello