line(1) line(1)
NAME
line - read one line
SYNOPSIS
line
DESCRIPTION
line copies one line (up to a newline) 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 newline.
It is often used within shell files to read from the user's
terminal.
EXAMPLE
line
Hello world
will return
Hello world
In the Bourne shell (sh):
a=`line`
hi there
echo $a
will return
hi there
In the C-shell (csh):
set a=`line`
bye bye
echo $a
will return
bye bye
FILES
/bin/line
SEE ALSO
csh(1), ksh(1), sh(1), read(2).
Page 1 (last mod. 1/16/87)