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: lex Chapter 2
UNIX Commands
Next: Reference: lint
 

line



line

Read the next line from standard input and write it to standard output. Exit status is 1 upon EOF . Typically used in shell scripts to read from the terminal.

Example

Print the first two lines of output from who :



who | ( line ; line )


Previous: Reference: lex UNIX in a Nutshell: System V Edition Next: Reference: lint
Reference: lex Book Index Reference: lint

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