ECHO(1) COMMAND REFERENCE ECHO(1)
NAME
echo - echo arguments
SYNOPSIS
echo [ -n ] [ arg ] ...
DESCRIPTION
Echo writes its arguments separated by blanks and terminated
by a newline on the standard output. It also understands
C-like escape conventions; beware of conflicts with the
shell's use of \:
\b backspace
\c print line up to \c without newline
\f form-feed
\n newline
\r carriage return
\t tab
\\ backslash
\n the 8-bit character whose ASCII code is the 1-, 2-
or 3-digit octal number n, which must start with a
zero.
Echo is useful for producing diagnostics in command files
and for sending known data into a pipe.
Echo is also built into sh with exactly the same
functionality.
OPTIONS
-n Suppress printing of the trailing newline. Equivalent to
ending arguments with \c.
EXAMPLES
The following invocation of echo will print the sentence
"This is a test.", followed by a newline.
echo This is a test.
The following invocation of echo will print the sentence
"This is a test."; the newline will not be printed.
echo This is a test.\cthis text will not be printed.
Printed 5/12/88 1
ECHO(1) COMMAND REFERENCE ECHO(1)
RETURN VALUE
[NO_ERRS] Command completed without error.
CAVEATS
Beware of conflicts with the shell's use of \.
If the first argument begins with -n but has more
characters, as in:
echo -none
the argument is printed as is, and the newline is not
suppressed by this argument.
The csh built-in command echo does not know about the C-like
escape conventions.
Echo is actually a shell script which executes the sh
built-in command. This is provided for programs like
make(1) that need to execute echo directly.
SEE ALSO
csh(1csh), echo(1csh), echo(1sh), make(1), and sh(1sh).
Printed 5/12/88 2
%%index%%
na:240,73;
sy:313,185;
de:498,1148;
op:1646,198;
ex:1844,496;
rv:2652,177;
ca:2829,757;
se:3586,233;
%%index%%000000000134