ECHO(1V) — NEWS-OS Programmer’s Manual
NAME
echo − echo arguments
SYNOPSIS
echo [ −n ] [ arg ] ...
/usr/5bin/echo [ arg ] ...
DESCRIPTION
echo writes its arguments separated by blanks and terminated by a newline on the standard output. If the flag −n is used, no newline is added to the output.
/usr/5bin/echo (or echo built in /usr/5bin/sh) understands C-like escape conventions; beware of conflicts with the shell’s use of \:
\b backspace
\c print line without new-line
\f form-feed
\n new-line
\r carriage return
\t tab
\v vertical 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 shell programs and for writing constant data on pipes. To send diagnostics to the standard error file, do ‘echo ... 1>&2’.
SEE ALSO
NEWS-OSRelease 4.1C