*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> line (1)              



NAME    [Toc]    [Back]

       line - Reads one line from standard input

SYNOPSIS    [Toc]    [Back]


STANDARDS    [Toc]    [Back]

       Interfaces  documented  on  this reference page conform to
       industry standards as follows:

       line:  XCU5.0

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

OPTIONS    [Toc]    [Back]


DESCRIPTION    [Toc]    [Back]

       The  line  command  copies one line, up to and including a
       newline, from standard input and  writes  it  to  standard
       output.   Use  this command within a shell command file to
       read from your terminal.  The line command  always  writes
       at least a newline character.

NOTES    [Toc]    [Back]

       The  line utility has no internationalization features and
       is marked LEGACY in XCU Issue  5.  Use  the  read  utility

EXIT STATUS    [Toc]    [Back]

       Success.  End-of-File.

EXAMPLES    [Toc]    [Back]

       To  read a line from the keyboard and append it to a file,
       enter: echo 'Enter comments for the log:' echo ': \c' line

       This  shell procedure displays the message: Enter comments
       for the log:

       It then reads a line of text from the keyboard and adds it
       to  the end of the file log.  The echo ': \c' command displays
 a : (colon) prompt.  See the echo command for information
 about the \c escape sequence.

SEE ALSO    [Toc]    [Back]

       Commands:  echo(1),  ksh(1), read(1), Bourne shell sh(1b),
       POSIX shell sh(1p)

       Functions:  read(2)

       Standards:  standards(5)

[ Back ]
 Similar pages
Name OS Title
read Tru64 Reads a line from standard input
read IRIX read a line from standard input
read HP-UX read a line from standard input
makekey OpenBSD encrypt passwords from the command line or standard input
encrypt OpenBSD encrypt passwords from the command line or standard input
tee Linux read from standard input and write to standard output and files
ldterm HP-UX standard STREAMS terminal line discipline module
stdio IRIX standard buffered input/output package
stdio Linux standard input/output library functions
stdio FreeBSD standard input/output library functions
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service