|
To produce output from shell scripts.
|
|---|
|
echo prints each argument to standard output, separated by a
single space
and terminated by a newline. It interprets escape sequences
within each
string that represent special characters and also control its
behavior.
|
|---|
|
Historical differences in behavior among Unix variants make it
difficult
to use echo portably for all but the simplest kinds of output.
|
|---|
| Sequence
| Description
| \a
| Alert character, usually the ASCII BEL character.
| \b
| Backspace.
| \c
| Suppress the final newline in the output. Furthermore, any characters
left in the argument, and any following arguments, are ignored (not printed).
| \f
| Formfeed.
| \n
| Newline.
| \r
| Carriage return.
| \t
| Horizontal tab.
| \v
| Vertical tab.
| \\
| A literal backslash character.
| \0ddd
| Character represented as a 1- to 3-digit octal value.
| | | | | | | | | | |