Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ line(1) — GL1 W2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sh(1)

read(2)

LINE(1)  —  Silicon Graphics

NAME

line − read one line

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. 

EXAMPLE

line
Hello world

will return

Hello world

In the Bourne shell (sh):

a=‘line‘
hi there
echo $a

will return

hi there

In the C-shell (csh):

set a=‘line‘
bye bye
echo $a

will return

bye bye

SEE ALSO

sh(1), read(2). 

Version 2.1  —  January 02, 1985

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