Unix Script Passing Argument to the script


 * 1) !/bin/ksh

NUMARG=$# ARGALL=$* PGMNAM=$0
 * 1) These are the default variables. Note that $0 is the script name.

ARG1=$1 ARG1=$2
 * 1) Each argument is $1, $2, and so on.

if [ ${NUMARG} -lt 1 ] then echo "$0 `date`: One argument is required." exit 99 fi