Bash a funkce read ?
Kamil Toman
toman na lab.karlin.mff.cuni.cz
Pondělí Květen 10 18:55:34 CEST 1999
Jak je to s funkci `read' v bashi
echo 11 22 33 > /tmp/aa; read A B C < /tmp/aa; echo $A $B $C
> 11 22 33
echo 111 222 333 | read A B C ; echo $A $B $C
> 11 22 33
to nezere?
help read
( One line is read from the standard input, and the first word is
~~~~~~~~~~~~~~~~~~~~~~~
assigned ... )
Pozn. v ksh na solarisu to funguje...
--
/-----------------------------\ Kamil Toman
| See you Soon! | /----------------\
/-----------------------------------------------------------\
| My Homepage | Keywords: BB, AA-group, AA |
| ~~~~~~~~~~~ | Koules, par, Linux, TeX |
| http://www.ta.jcu.cz/~toman | and many others ;-0 ... |
\-----------------------------------------------------------/
Další informace o konferenci Linux