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.


© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005