line - Copy one line of standard input
Format
line
Description
The line utility is fully supported for compatibility with older UNIX systems. However, it is recommended that the read utility be used instead because it may provide greater functionality and is considered the standard for portable UNIX applications as defined by POSIX.2 IEEE standard 1003.2-1992.
Examples
echo "Enter name:\c"
NAME='line'
Localization
line uses
the following localization environment variables:
- LANG
- LC_ALL
- LC_MESSAGES
- NLSPATH
Exit values
0
- A line was read successfully
1
- line reached end-of-file before finding a newline character
Portability
X/Open Portability Guide, UNIX System V.
Related information
cat, head, read, sh, tail