echo is a command used on
*nix systems using the following
syntax:
echo (-n) (string)
It prints whatever the string is to
standard output making is a useful
command to
add lines to files or to give a
user a
message in the middle of a
script.
It is usually found in
/bin/echo and also exists as a command built into the
C shell and
Bourne shell. /bin/echo is the same as the
Bourne shell
version with one exception: the -n option to /bin/echo works only when the user's PATH variable lists /usr/ucb before /usr/bin. The C-shell version does not support
escape characters.
Examples:
echo "does my printer work?" |
lp
echo "TITLE\nTITLE" > file ;
cat txtA txtB >> file
echo "Warning: ringing bell \07"