Bash Scripting 

Bash supports numerical looping by:
for (( I = 0; I < 10; I++ ));
do;
something;
done;

This includes variable substitutions, allowing the min/max to be set by variables.
BASH also supports
for I in {1..10};
but the numbers have to be hard coded (no variable substitution).
[ add comment ] ( 46 views ) permalink

<<First <Back | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | Next> Last>>