echo(1)
Name
echo − echo arguments
Syntax
echo [−n] [arg...]
Description
The echo command writes its arguments separated by blanks and terminated by a new line on the standard output.
Options
−nSuppresses newlines from output.
The command also understands C-like escape conventions. such as:
\b backspace
\c print line without new-line
\f form-feed
\n new-line
\r carriage return
\t tab
\v vertical tab
\\ backslash
\n the 8-bit character whose ASCII code is the 1-, 2- or 3-digit octal number n, which must start with a zero.
Examples
The echo command is useful for producing diagnostics in shell programs and for writing constant data on pipes. To send diagnostics to the standard error file, type the following:
echo ... 1>&2