Unix and Linux Discussions Tagged with he i |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
0 |
1,418 |
What is on Your Mind? |
|
|
|
8 |
1,911 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,819 |
IT Security RSS |
|
|
|
1 |
2,248 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
4,595 |
OS X Support RSS |
|
|
|
0 |
3,318 |
OS X Support RSS |
|
|
|
0 |
3,038 |
OS X Support RSS |
|
|
|
0 |
1,425 |
Complex Event Processing RSS News |
|
|
|
0 |
2,268 |
OS X Support RSS |
|
|
|
0 |
1,409 |
Complex Event Processing RSS News |
|
|
|
0 |
1,684 |
IT Security RSS |
|
|
|
0 |
3,378 |
UNIX and Linux RSS News |
|
|
|
8 |
4,320 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
5,277 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
4,001 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,680 |
Programming |
|
|
|
1 |
4,086 |
Programming |
|
|
|
1 |
4,064 |
Shell Programming and Scripting |
|
|
|
2 |
4,726 |
Shell Programming and Scripting |
|
|
|
2 |
2,783 |
UNIX for Advanced & Expert Users |
|
|
|
9 |
7,107 |
Programming |
|
|
|
1 |
4,643 |
Shell Programming and Scripting |
|
|
|
3 |
3,309 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
2,841 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,566 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
2,344 |
UNIX for Dummies Questions & Answers |
|
|
|
13 |
7,798 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
3,309 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,704 |
IP Networking |
|
|
|
7 |
4,587 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,459 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
7,567 |
Programming |
|
|
|
1 |
3,780 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
3,439 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
1,730 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,065 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,602 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,765 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
124,838 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,257 |
UNIX for Dummies Questions & Answers |
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 standards as follows:
line: XCU5.0
Refer to the standards(5) reference page for more information about industry 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 command always writes at least a newline character.
NOTES
The line utility has no internationalization features and is marked LEGACY in XCU Issue 5. Use the read utility 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)