DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

line(C)


line -- read one line

Syntax

line

Description

line copies one line (up to a new line) from the standard input and writes it on the standard output.

line is often used within shell scripts to read from the user's terminal.

line always prints at least a new line.

Exit values

line returns 0 on successful completion; 1 on end-of-file detected on input.

See also

gets(C), sh(C)

Standards conformance

line is conformant with:

AT&T SVID Issue 2;
X/Open CAE Specification, Commands and Utilities, Issue 4, 1992: note that this command is marked as to be withdrawn.


© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003