manpages.info - online man pages   

Mac OS X / Darwin man pages : echo (1)
echo (1)

Table of Contents

Name

echo - write arguments to the standard output

Synopsis

echo [-n] [string ...]

Description

The echo utility writes any specified operands, separated by single blank (` `) characters and followed by a newline (`\n') character, to the standard output.

The following option is available:

-n
Do not print the trailing newline character. This may also be achieved by appending `\c' to the end of the string, as is done by iBCS2 compatible systems.

Some shells may provide a builtin echo command which is similar or identical to this utility. Consult the builtin(1) manual page.

Diagnostics

The echo utility exits 0 on success, and >0 if an error occurs.

See Also

builtin(1) , csh(1) , printf(1) , sh(1)

Standards

The echo utility is expected to be IEEE Std 1003.2 (``POSIX.2'') compatible.


Table of Contents