Revision [766]

This is an old revision of CommandRead made by DavidLee on 2009-09-16 07:56:25.

 

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.

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


CategoryCommands

There are 2 comments on this page. [Show comments]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki