#!/bin/sh -u # $0 [args...] # Count and display each argument (including $0) to this script. # -IAN! idallen@idallen.ca - www.idallen.com June 2001 export PATH=/bin:/usr/bin umask 022 # This displays the name of this script. # echo "Argument 0 is [$0]" # Now display all of the command line arguments (if any). # count=0 for arg do count=$(( $count+1 )) echo "Argument $count is [$arg]" done