#!/bin/bash echo "argc = $#"; let i=1; echo "The command = $0"; for argv in "$@"; do printf "argv[%d] ($%d) = '%s'\n" $i $i "$argv" let i++; done