I am trying to pipe input to a bash script, like so:
echo one two three | script

The script has this:
for i in $@
do
echo $i
done

This doesn't work, although
echo one two three | xargs -n1 script
does work.
Is there a way to avoid having to use xargs?
Thanks,
Joel

_______________________________________________
http://linux.nf -- [EMAIL PROTECTED]
Archives, Subscribe, Unsubscribe, Digest, Etc 
->http://linux.nf/mailman/listinfo/linux-users

Reply via email to