Using For Loop to List Iterate Over Numbers
suggest change#! /bin/bash
for i in {1..10}; do # {1..10} expands to "1 2 3 4 5 6 7 8 9 10"
echo $i
done
This outputs the following:
1
2
3
4
5
6
7
8
8
10
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents