[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Probably very stupid script/bash question



Am 2008-03-05 14:13:33, schrieb Brian:
> teststring="one two three four five six" 
> { read A B C D E F; } < <( echo "$teststring" ) 
> echo "Data received = $E Bytes" 
------------------------ END OF REPLIED MESSAGE ------------------------

This look a little bit weird. Why not use:

----8<--------------------------------------------
read A B C D E F <<EOF
one two three four five six
EOF
----8<--------------------------------------------

and

----8<--------------------------------------------
teststring="one two three four five six" 

read A B C D E F <<EOF
$teststring
EOF

echo "Data received = $E Bytes" 
----8<--------------------------------------------

no need for a stupid resources eating subschell expecialy on a ARM.

:-)


Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: