LINE(1) General Commands Manual LINE(1)

lineread one line (LEGACY)

line

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.

None.

None.

The standard input is a text file.

None.

None.

Default.

The standard output is a text file consisting of one line.

Used only for diagnostic messages.

None.

None.

Exit status is:

Successful completion.
End-of-file on input.

Default.

The line utility is often used within command scripts to read from the user's terminal.

Applications should migrate to the utility.

None.

None.

read(1) .

February 1997 posix.fail