[Vm-dev] with: do: in (ba)sh scripts
gettimothy
gettimothy at zoho.com
Fri Jun 13 18:55:11 UTC 2014
Hi Eliot
Hi All,
anyone know of the nicest way of doing with: do: in bash? Right now I've found the following and I think it stinks:
set -- firstone firsttwo firstthree
for v in secondone secondtwo secondthree
do
blah $1 $v
shift
done
I don't know if it is the nicest, but it is nicer.
http://www.menmachinesmaterials.com/Flat/image/createFlatSourceTree.sh
see 'iterate through array values' example here:
http://www.cyberciti.biz/faq/bash-for-loop-array/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20140613/72266cca/attachment-0001.htm
More information about the Vm-dev
mailing list