Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ line(1) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sh

read

line

PURPOSE

     Reads one line from the standard input.

SYNOPSIS
     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:'
       echo ': \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 "echo  ': \c'"
     command displays a colon prompt.  See "echo" for informa-
     tion about the \c escape sequence.

RELATED INFORMATION

     The following command:  "sh."

     The read  system call  in AIX Operating  System Technical
     Reference.

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