line - read 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:
- 0
- Successful completion.
- >0
- 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 read utility.
None.
None.
read.