Name
echo
Synopsis
[
echo
options
] [strings
]
Write each string to standard output, separated by spaces and terminated by a newline. If no strings are supplied, echo a newline. (See also echo in Chapter 2.)
Options
-
-e
Enable interpretation of escape characters:
-
\a
Audible alert
-
\b
Backspace
-
\c
Suppress the terminating newline (same as -n)
-
\e
Escape character
-
\f
Form feed
-
\n
Newline
-
\r
Carriage return
-
\t
Horizontal tab
-
\v
Vertical tab
-
\\
Backslash
-
\
nnn
The character in the ASCII set corresponding to the octal number
nnn
.-
\x
nn
The character in the ASCII set corresponding to the hexadecimal number
nn
(1 or 2 hex digits).
-
-
-n
Don’t append a newline to the output.
-
-E
Disable interpretation of escape characters.
Get Mac OS X Tiger in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.