Home Linux bashOS X
 OS X Books, Links

echo

Display message on screen.

SYNTAX
      echo [-n] [string ...]

Options
       -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.

To produce a default beep:

echo '^G^G^G^G'

where you get the literal ^G characters (which represent ASCII 7, the BEL character) by typing "ctrl-v ctrl-g".

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

QED - Quod erat demonstrandum. [Thus it is proven.]

Related commands:

lpr
- Print files
printf - Format and print data
say - Convert text to audible speech

Equivalent BASH command:

echo
- Display message on screen



Back to the Top

Simon Sheppard
SS64.com