for var in value1 value2 value3
do
command
command
done
for i in 1 2 3 "the end"
do
echo "i is " $i
done
The output from running this for loop will be:
i is 1
i is 2
i is 3
i is the end
for num in {1..10}
do
echo $num
done
for arg in "${@}"
do
echo "$arg"
done