read — Read a Line from Standard Input
Synopsis
/usr/bin/read [-r] var...
sh
read name...
csh
set variable = $<
ksh
read [-prsu[n]][name?prompt][name...]
Description
/usr/bin/read
The read command reads a single line from standard input.
By default, unless you specify the -r option, backslash (\) acts as an escape character. If standard input is a terminal device and the invoking shell is interactive, read prompts for a continuation line in the following cases:
When the shell reads an input line ending with a backslash, unless you specify the -r option.
When a here-document is not terminated after a newline character is entered.
The line is split into fields as in the shell; the first field is assigned to the first variable var ...
Get Solaris™ 7 Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.