Query: line
OS: osf1
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
line(1) General Commands Manual line(1)NAMEline - Reads one line from standard inputSYNOPSISlineSTANDARDSInterfaces 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.OPTIONSNoneDESCRIPTIONThe 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.NOTESThe line utility has no internationalization features and is marked LEGACY in XCU Issue 5. Use the read utility instead.EXIT STATUSSuccess. End-of-File.EXAMPLESTo 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 ALSOCommands: echo(1), ksh(1), read(1), Bourne shell sh(1b), POSIX shell sh(1p) Functions: read(2) Standards: standards(5) line(1)
Related Man Pages |
---|
false(1) - osf1 |
line(1) - hpux |
basename(1) - osf1 |
cat(1) - osf1 |
logname(1) - osf1 |
Similar Topics in the Unix Linux Community |
---|
Problem with while loop in shell script |
problem in if then else condition |
Extract the letter from string |
Read the specified line number from file |
Problem with tr command |