MPE/iX Shell and Utilities Reference Manual, Vol 1

line(1) MPE/iX Shell and Utilities line(1)
NAME
line — copy one line of standard input
SYNOPSIS
line
DESCRIPTION
line copies one input line from its standard input to its standard output. The end of the line
is the first newline encountered. This is useful in shell files that need small amounts of input
(for example, responses to prompts).
EXAMPLES
echo "Enter name:\c"
NAME=`line`
DIAGNOSTICS
Possible exit status values are:
0 A line was read successfully.
1 line reached end-of-file before finding a newline character.
PORTABILITY
x/OPEN Portability Guide 4.0. UNIX System V.
MPE/iX NOTES
For information on how the current MPE/iX
implementation may affect the operation of this
utility, see Appendix A, MPE/iX Implementation Considerations.
SEE ALSO
cat(1), head(1), read(1), sh(1), tail(1)
1-292 Commands and Utilities