line - Reads one line from standard input
Interfaces documented on this reference page conform to industry standards as follows:
line: XPG4, XPG4-UNIX
Refer to the
reference page for more information
about industry standards and associated tags.
command copies one line, up to and including a newline, from
standard input and writes it to standard output. Use this command within
a shell command file to read from your terminal. The
command always writes at least a newline character.
utility has no internationalization features
and is considered obsolete and will be withdrawn in a future version. Use
To read a line from the keyboard and append it to a file, enter: echo 'Enter comments for the log:' echo ': \c' line >>log
This shell procedure displays the message: Enter comments for the log:
It then reads a line of text from the keyboard and adds it to the end
of the file
echo ': \c'
command displays a
(colon) prompt. See the
command for information about the
Commands: echo(1), ksh(1), read(1), Bourne shell sh(1b), POSIX shell sh(1p)