line

copy one line of standard input 

Command


SYNOPSIS

line


DESCRIPTION

line copies one input line from its standard input to its standard output. The end of the line is the first newline encountered. This is useful in shell files that need small amounts of input (for example, responses to prompts).


EXAMPLES

echo "Enter name:\c"
NAME=`line`

DIAGNOSTICS

Possible exit status values are:

0 

A line was read successfully.

1 

line reached end-of-file before finding a newline character.


PORTABILITY

x/OPEN Portability Guide 4.0. UNIX System V. Windows 7. Windows Server 2008 R2. Windows 8. Windows Server 2012. Windows 10. Windows Server 2016.


AVAILABILITY

PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Commands:
cat, head, read, sh, tail


PTC MKS Toolkit 10.1 Documentation Build 15.