Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sh(1)

echo(1B)

NAME

echo − echo arguments to standard output

SYNOPSIS

/usr/ucb/echo [ argument ] ...
/usr/ucb/echo [ −n ] [ argument ]

AVAILABILITY

SUNWscpu

DESCRIPTION

echo writes its arguments separated by blanks and terminated by a new-line on the standard output. 

The /usr/bin/sh version understands the following C-like escape conventions; beware of conflicts with the shell’s use of \:

\b backspace

\c print line without new-line

\f form-feed

\n new-line

\r carriage return

\t tab

\v vertical tab

\\ backslash

\0n where n is the 8-bit character whose ASCII code is the 1-, 2- or 3-digit octal number representing that character. 

echo is useful for producing diagnostics in command files and for sending known data into a pipe. 

OPTIONS

−n Do not add the newline to the output. 

SEE ALSO

sh(1)

NOTES

The −n option is a transition aid for BSD applications, and may not be supported in future releases. 

When representing an 8-bit character by using the escape convention \0n, the n must always be preceded by the digit zero (0).  For example, typing: echo ´WARNING:\07´ will print the phrase WARNING: and sound the “bell” on your terminal.  The use of single (or double) quotes (or two backslashes) is required to protect the “\” that precedes the “07”.  For the octal equivalents of each character, see ascii(5). 

SunOS 5.1/x86  —  Last change: 14 Sep 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026