Iterate over arguments in bash

Here is how you iterate over the list of command line arguments (ARGV) in bash

for var in "$@"
do
    echo "$var"
done
Leave A Reply
All content licensed under the Creative Commons License