linux loop over all arguments one by one

Shell
for var in "$@"
do
    echo "$var"
done
Source

Also in Shell: