Revision [1033]
This is an old revision of CommandRead made by DavidLee on 2009-11-25 15:37:32.
Command read
Name
read Reads one line from stdin and assigns to variablesSynopsis
xread var1 [var2 ... varn]Reads one line from stdin, splits the line into fields using any of the charactors in the IFS variable (default space,tab),
and assigns the values to the specified variables.
Example:
read a b <<EOF string1 string2 EOF echo $a $b
Result
string1 string2
Commands
CategoryCommands