2010-05-12, 08:20(-04), Greg Wooledge:
[...]
> x=10; i=1; while [ $i -le $x ]; do ...; i=$(($i+1)); done
And
seq 10 | xargs -n1 ...
or:
seq 10 | xargs -I% ... % ...
like:
seq 10 | xargs -I% echo '<%>'
Both of which will work in any shell (provided you have the
seq command).
--
Stéphane