Monday, August 20, 2007

Unix - `echo`


`echo` - display a line of text

your shell may have its own version of echo which will supercede the version described here. Please refer to your shell’s documentation for details about the options it supports.

Echo the STRING(s) to standard output.
-n do not output the trailing newline
-e enable interpretation of the backslash-escaped characters listed below
-E disable interpretation of those sequences in STRINGs

Without -E, the following sequences are recognized and interpolated:
\NNN the character whose ASCII code is NNN (octal)
\\ backslash
\a alert (BEL)
\b backspace
\c suppress trailing newline
\f form feed
\n new line
\r carriage return
\t horizontal tab
\v vertical tab

No comments: