loop in a loop bash code example
Example 1: bash script loop
while [ <some test> ]
do
<commands>
done
Example 2: bash for loop step
for i in `seq 0 2 10`; do echo $i; done
while [ <some test> ]
do
<commands>
done
for i in `seq 0 2 10`; do echo $i; done