home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: du Chapter 2
UNIX Commands
Next: Reference: ed
 

echo



echo

 [

-n

] [

string

]

This is the /bin/echo command. echo also exists as a command built into the C shell and Bourne shell (see Sections 4 and 5). /bin/echo is the same as the Bourne shell version with one exception: the -n option to /bin/echo works only when the user's PATH variable lists /usr/ucb before /usr/bin . The C-shell version does not support escape characters.

Examples



echo "testing printer" | lp




echo "TITLE\nTITLE" > file ; cat doc1 doc2 >> file




echo "Warning: ringing bell \07"


Previous: Reference: du UNIX in a Nutshell: System V Edition Next: Reference: ed
Reference: du Book Index Reference: ed

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System