Table of Contents

Advertisement

line

line — read a line
Copies one line (up to a new line) from the standard input channel of the current
process to the standard output channel of the current process. This command
always writes at least a new line as output.
Use this command in scripts to read from the user's terminal, or to read lines
from a pipeline while in a
Syntax
line
Examples
1.
>>> line
type a line of input followed by carriage return
type a line of input followed by carriage return
The line you typed is copied to your screen.
2.
>>> line >foo
type a line of input followed by carriage return
>>> cat foo
type a line of input followed by carriage return
Shows the line command used interactively.
3.
>>> echo -n 'continue [Y, (N)]? '
>>> line <tt >tee:foo/nl
>>> if grep <foo '[yY]' >nl; then echo yes; else echo no; fi
>>>
Shows the line command used within a script.
13–62 Console Commands
loop.
for/while/until

Advertisement

Table of Contents
loading

This manual is also suitable for:

Digital alpha vme 4/288

Table of Contents