|
|
HP-UX Reference > Rread(1)HP-UX 11i Version 2: December 2007 Update |
|
NAMEread — read a line from standard input DESCRIPTIONread reads a single line from standard input. The line is split into fields as when processed by the shell (refer to shells in SEE ALSO); the first field is assigned to the first variable var, the second field to the second variable var, and so forth. If there are more fields than there are specified var operands, the remaining fields and their intervening separators are assigned to the last var. If there are more vars than fields, the remaining vars are set to empty strings. The setting of variables specified by the var operands affect the current shell execution environment. Standard input to read can be redirected from a text file. Since read affects the current shell execution environment, it is usually provided as a normal shell special (built-in) command. Thus, if it is called in a subshell or separate utility execution environment similar to the following, it does not affect the shell variables in the caller's environment: (read foo) nohup read ... find . -exec read ... ; RETURN VALUEread exits with one of the following values:
|
|