ECHO(1)

NAME
echo - echo arguments

SYNOPSIS
echo [argument ...]

DESCRIPTION
Echo writes its arguments separated by blanks and terminated by a newline on the standard output.

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

The following escapes sequences are recognized in the arguments:

\a  Prints an alert character (/usr/5bin/posix/echo and /usr/5bin/posix2001/echo only).

\b  Prints a backspace character.

\c  Causes the command to return immediately. Any following characters are ignored, and the terminating newline is not printed.

\f  Prints a formfeed character.

\n  Prints a newline character.

\r  Prints a carriage-return character.

\t  Prints a tabulator character.

\v  Prints a vertical tabulator character.

\\  Prints a backslash character.

\0nnn
    Prints the character (byte) with octal value nnn.

ENVIRONMENT VARIABLES

LANG, LC_ALL
    See locale(7).

LC_CTYPE
    Determines the scope of backslash as an escape character.

SYSV3
    If this variable is set and the first argument is -n, the terminating newline is not printed.

SEE ALSO
printf(1)

NOTES
It is recommended for portability that printf(1) is used instead of echo if backslashes are to be printed or if the trailing newline is to be omitted.