Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sh(1)

ECHO(1V)  —  USER COMMANDS

NAME

echo − echo arguments

SYNOPSIS

echo [ −n ] [ argument ... ]

SYSTEM V SYNOPSIS

echo argument ...

DESCRIPTION

echo writes its arguments on the standard output.  Arguments must be separated by spaces or tabs, and terminated by a newline. 

echo is useful for producing diagnostics in shell programs and for writing constant data on pipes.  If you are using the Bourne Shell (sh(1)), you can send diagnostics to the standard error file by typing:

echo ... 1>&

SYSTEM V DESCRIPTION

Note:If /usr/5bin is ahead of /usr/bin in the Bourne shell’s search path, its built-in echo command mimics the System V version of echo as described here. 

echo also 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.

OPTIONS

−nDon’t add the newline to the output. 

SEE ALSO

sh(1)

Sun Release 3.2  —  Last change: 16 April 1986

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026