Programming Tips - Bash: loop from 1 to 10 (counting for-loop)

Date: 2023aug21 Language: bash Q. Bash: loop from 1 to 10 (counting for-loop) A. Use `seq` in a for like this
for index in $(seq 1 10); do echo "index=$index"; done
You can change the increment too https://linux.die.net/man/1/seq