Полезная информация

UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: lexChapter 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: lexUNIX in a Nutshell: System V EditionNext: Reference: lint
Reference: lexBook IndexReference: lint

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