bash loops
for loop1
for val in {1..10}; do
...
done
for loop2
for ((i=1; i<=10; i++)); do
...
done
iterate over user input
vim test.sh
for var in "$@"; do
echo "$var"
done
# output
# bash test.sh 1 2 '3 4'
# 1
# 2
# 3 4
iterate over files in dir
for FILE in something*; do
echo ${FILE}
...
done