for index in $(seq 1 10); do echo "index=$index"; doneYou can change the increment too https://linux.die.net/man/1/seq Another way that doesn't depend on `seq`
i=1 while [[ $i -le 10 ]]; do echo "i=$i" ((i++)) done
for index in $(seq 1 10); do echo "index=$index"; doneYou can change the increment too https://linux.die.net/man/1/seq Another way that doesn't depend on `seq`
i=1 while [[ $i -le 10 ]]; do echo "i=$i" ((i++)) done