I have gotten the following to work:
for i in {2..10} do echo \"output: $i\" done
It produces a bunch of lines of output: 2
output: 2
We can iterate loop like as C programming.
#!/bin/bash for ((i=1; i<=20; i=i+1)) do echo $i done