Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ line(1) — HP-UX 7.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sh(1)

read(2)

LINE(1)

NAME

line − read one line from user input

SYNOPSIS

line

DESCRIPTION

Line copies one line (up to a new-line) 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 new-line.  It is often used within shell files to read from the user’s terminal. 

EXAMPLES

The following lines in a shell script prompt for a file name and display information about the file.:

echo ’Enter file name: \c’
reply=‘line‘
ls −l $reply

SEE ALSO

sh(1), read(2). 

EXTERNAL INFLUENCES

International Code Set Support

Single- and multi-byte character code sets are supported. 

STANDARDS CONFORMANCE

line: SVID2, XPG2, XPG3

Hewlett-Packard Company  —  HP-UX Release 7.0: Sept 1989

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026