Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sh(1)

read(2)



  line(1)                             CLIX                             line(1)



  NAME

    line - Reads one line

  SYNOPSIS

    line

  DESCRIPTION

    The line command copies one line (up to a newline) from stdin and writes
    it on stdout.  It returns an exit code of 1 on EOF and always displays at
    least a newline.  It is often used within shell files to read from the
    user's terminal.

  EXAMPLES

    Using the following command in a shell script will cause the shell
    variable ANSWER to be set to whatever is read from stdin:

    line | set ANSWER


  EXIT VALUES

    The line command returns a value of 1 if the end-of-file is read.

  RELATED INFORMATION

    Commands: sh(1)

    Functions: read(2)






















  2/94 - Intergraph Corporation                                              1




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