LINE(1) General Commands Manual LINE(1)
NAME
line — read one
line (LEGACY)
SYNOPSIS
line |
DESCRIPTION
The line utility copies one line (up to
and including a newline) from the standard input and writes it to standard
output. It always writes at least a newline.
OPTIONS
None.
OPERANDS
None.
STDIN
The standard input is a text file.
INPUT FILES
None.
ENVIRONMENT VARIABLES
None.
ASYNCHRONOUS EVENTS
Default.
STDOUT
The standard output is a text file consisting of one line.
STDERR
Used only for diagnostic messages.
OUTPUT FILES
None.
EXTENDED DESCRIPTION
None.
EXIT STATUS
Exit status is:
CONSEQUENCES OF ERRORS
Default.
APPLICATION USAGE
The line utility is often used within
command scripts to read from the user's terminal.
Applications should migrate to the read utility.
EXAMPLES
None.
FUTURE DIRECTIONS
None.
SEE ALSO
read(1) .
February 1997 posix.fail