For loop



# for loops: iteration, string interpolation
# $@ → all arguments

num_args=$#

echo "You ran this program with ${num_args} arguments. Here they are:"
for arg in "$@"; do
    echo "$arg"
done

Index