Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ line(1) — HP-UX 6.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sh(1)

read(2)

LINE(1)  —  HP-UX

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). 

INTERNATIONAL SUPPORT

8- and 16-bit data. 

Hewlett-Packard Company  —  May 11, 2021

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