Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ line(1) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sh, Rsh

read



LINE(1,C)                   AIX Commands Reference                    LINE(1,C)



-------------------------------------------------------------------------------
line



PURPOSE

Reads one line from standard input.

SYNTAX


line ---|


DESCRIPTION

The line command copies one line from standard input and writes it to standard
output.  It returns an exit value of 1 on an end-of-file and always writes at
least a new-line character.  Use this command within a shell command file to
read from your work station.

EXAMPLE

To read a line from the keyboard and append it to a file:

  echo 'Enter comments for the log: \c'
  line >>log

This shell procedure displays the message:

  Enter comments for the log:

then reads a line of text from the work station keyboard and adds it to the end
of "log".  The ": \c" command displays a colon prompt.  See "echo" for
information about the \c escape sequence.

RELATED INFORMATION

See the following commands:  "sh, Rsh."

See the read system call in AIX Operating System Technical Reference.













Processed November 8, 1990         LINE(1,C)                                  1



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