Chris - I have tried the way it was shown in Oracle Docs... but its not working...
#!/bin/ksh
#getopts "f

file)(input-file)o

output-file)"
while getopts "a

file)fz" option;
do
case $option in
a)
echo "received -a with parameter ${OPTARG}"
;;
f)
echo received -f
;;
z)
echo received -z
;;
*)
echo "invalid option -$OPTARG"
;;
esac
done
Execution :
$ desk -file HISTORY
received -f
invalid option -
invalid option -
invalid option -
Please help me....