ECHO
PROLOG
NAME
SYNOPSIS
DESCRIPTION
OPTIONS
OPERANDS
STDIN
INPUT FILES
ENVIRONMENT VARIABLES
ASYNCHRONOUS EVENTS
STDOUT
STDERR
OUTPUT FILES
EXTENDED DESCRIPTION
EXIT STATUS
CONSEQUENCES OF ERRORS
APPLICATION USAGE
EXAMPLES
RATIONALE
FUTURE DIRECTIONS
SEE ALSO
COPYRIGHT
PROLOG
This manual page is part of the POSIX Programmer’s Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
NAME
echo — write arguments to standard output
SYNOPSIS
echo [string…]
DESCRIPTION
The echo utility writes its arguments to standard output, followed by a
OPTIONS
The echo utility shall not recognize the “–“ argument in the manner specified by Guideline 10 of the Base Definitions volume of POSIX.1-2017, Section 12.2, Utility Syntax Guidelines; “–“ shall be recognized as a string operand.
Implementations shall not support any options.
OPERANDS
The following operands shall be supported:
string |
A string to be written to standard output. If the first operand is −n, or if any of the operands contain a |
On XSI-conformant systems, if the first operand is −n, it shall be treated as a string, not an option. The following character sequences shall be recognized on XSI-conformant systems within any of the arguments:
a |
Write an |
||
b |
Write a |
||
c |
Suppress the |
||
f |
Write a |
||
n |
Write a |
||
r |
Write a |
||
t |
Write a |
||
v |
Write a |
||
\ |
Write a |
||