#!/bin/sh -u # $0 [args...] # Count and display each argument (including $0) to this script. # -IAN! idallen@ncf.ca June 2001 export PATH=/bin:/usr/bin umask 022 # The $0 variable contains the name of this script, sometimes called # "argument zero". It is not an argument to the script itself. # The script name is not counted as an "argument" to the script; # only arguments 1 and up are counted as arguments to the script. # echo "Argument 0 is [$0]" # Now display all of the command line arguments (if any). # These are the real arguments to this script. # let count=0 for arg do let count=count+1 echo "Argument $count is [$arg]" done