LINE(1)
NAME
line − read one line from user input
SYNOPSIS
line
DESCRIPTION
Line copies one line (up to a new-line) from the standard input and writes it on the standard output. It returns an exit code of 1 on EOF and always prints at least a new-line. It is often used within shell files to read from the user’s terminal.
EXAMPLES
The following lines in a shell script prompt for a file name and display information about the file.:
echo ’Enter file name: \c’
reply=‘line‘
ls −l $reply
SEE ALSO
EXTERNAL INFLUENCES
International Code Set Support
Single- and multi-byte character code sets are supported.
STANDARDS CONFORMANCE
line: SVID2, XPG2, XPG3
Hewlett-Packard Company — HP-UX Release 7.0: Sept 1989