Yes, works really well. ![]()
What about the thing for matching lower and upper case letters?
while [ "$#" -gt 0 ]
do
arg=`echo "$1" | tr '[:lower:]' '[:upper:]'`
case "$arg" in
"--RAYTRAC-PATH")
shift # Skip ahead one to the next argument.
arg_raytracPath="${1}"
opt_raytracPath=1
;;
"--CMODIF"|\
"--CMOD-INFILE")
shift # Skip ahead one to the next argument.
arg_cmodInFile="${1}"
opt_cmodInFile=1
;;
...
or
while [ "$#" -gt 0 ]
do
case "$1" in
"--"[rR][aA][yY][tT][rR][aA][cC]"-"[pP][aA][tT][hH])
shift # Skip ahead one to the next argument.
arg_raytracPath="${1}"
opt_raytracPath=1
;;
"--"[cC][mM][oO][dD][iI][fF]|\
"--"[cC][mM][oO][dD]"-"[iI][nN][fF][iI][lL][eE]")
shift # Skip ahead one to the next argument.
arg_cmodInFile="${1}"
opt_cmodInFile=1
;;
...