echo
[-n
] [string
]
Write
string
to standard output; if
-n
is specified, the output is not terminated by a newline. If no
string
is supplied, echo a newline. In the Korn shell,
echo
is just an alias for
print -
. (See also
echo
in Section 2.)
echo
understands special escape characters, which must be quoted (or escaped with a \) to prevent interpretation by the shell:
Backspace.
Suppress the terminating newline (same as -n ).
Formfeed.
Newline.
Carriage return.
Tab character.
Backslash.
ASCII character represented by octal number
nnn
, where
nnn
is 1, 2, or 3 digits and is preceded by a 0.