Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ echo(1V) — SunOS 4.0.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sh(1)

ECHO(1V)  —  USER COMMANDS

NAME

echo − echo arguments to the standard output

SYNOPSIS

echo [ −n ] [ argument ... ]

SYSTEM V SYNOPSIS

echo argument ...

DESCRIPTION

echo writes its arguments on the standard output.  Arguments must be separated by SPACE characters or TAB characters, 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 NEWLINE

\f FORMFEED

\n NEWLINE

\r 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

−n Do not add the NEWLINE to the output. 

FILES

/usr/5bin

/usr/bin

SEE ALSO

sh(1)

Sun Release 4.0  —  Last change: 9 September 1987

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