Arguments

Whitespace

Note that in general, whitespace is tricky and this holds for command-line arguments too.

For instance:

arg=1
echo "There are $# arguments"
for f in $*
do
    echo "arg is: $f"
    ((arg++))   # ooo - math!
done 

Misc Tips for Argument Processing