MPE/iX Shell and Utilities Reference Manual, Vol 1
echo(1) MPE/iX Shell and Utilities echo(1)
NAME
echo — display arguments
SYNOPSIS
echo argument...
DESCRIPTION
echo writes its arguments to the standard output. echo accepts these C-style escape
sequences:
\a bell
\b backspace
\c removes any following characters including
\n and \r
\f formfeed
\n newline
\r carriage return
\t horizontal tab
\v vertical tab
\0num the byte with the numeric value specified
by the zero to three digit octal num
\\ backslash
echo follows the final argument with a newline unless it finds \c in the arguments. Argu-
ments are subject to standard argument manipulation.
EXAMPLES
One important use of echo is to expand file names on the command line, as in:
echo *.[ch]
This displays the names of all files with names ending in .c or .h, typically
C source and
header files. echo displays the names on a single line. If there are no file names in the cur-
rent directory that end in or .h, echo simply displays the string *.[ch].
echo is also convenient for passing small amounts of input to other filters:
echo ’this is\nreal handy’ | banner
DIAGNOSTICS
echo always returns the status value:
0 Successful completion.
Commands and Utilities 1-193