for i in {1..10}; do echo $i; done1
2
3
4
5
6
7
8
9
10a=(1 2 3 4)for y in "${a[@]}"; do echo "$y"; done1
2
3
4for (( i = 0; i < 10; i++ )); do echo "The iteration number is $i"; doneThe iteration number is 0
The iteration number is 1
The iteration number is 2
The iteration number is 3
The iteration number is 4
The iteration number is 5
The iteration number is 6
The iteration number is 7
The iteration number is 8
The iteration number is 9