Bash supports numerical looping by:
This includes variable substitutions, allowing the min/max to be set by variables.
BASH also supports
but the numbers have to be hard coded (no variable substitution).
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).
Archives



