for loop with variable range code example Example: bash for interval for i in $(seq 1 $END); do echo $i; done