*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: line | Section: 1 | Source: Digital UNIX | File: line.1.gz
line(1) General Commands Manual line(1) NAME line - Reads one line from standard input SYNOPSIS line STANDARDS Interfaces documented on this reference page conform to industry stan- dards as follows: line: XPG4, XPG4-UNIX Refer to the standards(5) reference page for more information about in- dustry standards and associated tags. OPTIONS None DESCRIPTION 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 com- mand always writes at least a newline character. NOTES The line utility has no internationalization features and is considered obsolete and will be withdrawn in a future version. Use the read util- ity instead. EXIT STATUS Success. End-of-File. EXAMPLES To read a line from the keyboard and append it to a file, enter: echo 'Enter comments for the log:' echo ': \c' line >>log 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 Commands: echo(1), ksh(1), read(1), Bourne shell sh(1b), POSIX shell sh(1p) Functions: read(2) Standards: standards(5) line(1)

Navigation Options