line(1) CLIX line(1)
NAME
line - Reads one line
SYNOPSIS
line
DESCRIPTION
The line command copies one line (up to a newline) from stdin and writes
it on stdout. It returns an exit code of 1 on EOF and always displays at
least a newline. It is often used within shell files to read from the
user's terminal.
EXAMPLES
Using the following command in a shell script will cause the shell
variable ANSWER to be set to whatever is read from stdin:
line | set ANSWER
EXIT VALUES
The line command returns a value of 1 if the end-of-file is read.
RELATED INFORMATION
Commands: sh(1)
Functions: read(2)
2/94 - Intergraph Corporation 1