General for loop structure in shell:
for { variable } in { list }
do
#loop body eg.
echo list_element
done
Here's the example:
for i in 1 2 3 4 5 6 7 8 9 10
do
echo "Variable i = "$i
done
To loop over a range with a certain limits:
for (( i = 0 ; i <= 5; i++ ))
do
echo "Variable i = "$i
done