|ECHO(1)||General Commands Manual||ECHO(1)|
echo — write
arguments to the standard output
echo utility writes any specified
operands, separated by single blank (‘ ’) characters
and followed by a newline (‘\n’) character, to the standard
When no operands are given, only the newline is written. The
-- operand, which generally denotes an end to option
processing, is treated as part of string.
The options are as follows:
echo utility exits 0 on
success, and >0 if an error occurs.
echo utility is compliant with the
IEEE Std 1003.1-2008 (“POSIX.1”)
The flag [
-n] conflicts with the behaviour
mandated by the X/Open System Interfaces option of the IEEE
Std 1003.1-2008 (“POSIX.1”) specification, which says
it should be treated as part of string. Additionally,
echo does not support any of the backslash character
sequences mandated by XSI.
Where portability is paramount, use printf(1).
echo utility appeared in
Version 2 AT&T UNIX.
|March 16, 2018||OpenBSD-current|