bash for loop range step code example
Example 1: for i in range bash
#Just use command seq to iterate a range from start to end
END=10
for i in $(seq 1 $END); do echo $i; done
Example 2: bash for loop step
for i in `seq 0 2 10`; do echo $i; done