Wiki source for CommandRead

Show raw source

======Command read======

**read** Reads one line from stdin and assigns to variables

**read** 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.

read a b <<EOF
string1 string2
echo $a $b
string1 string2

Valid XHTML :: Valid CSS: :: Powered by WikkaWiki