Failed to get
a=`echo $a | tr 'az' 'A-Z'`
but
a=`echo $a | tr '[az]' '[AZ]'`
did (note the extra brackets regex [].
Inside the / usr / bin / sh script this worked like
... while getopts ":l:c:" option; do case "$option" in l) L_OPT=`echo ${OPTARG}| tr '[az]' '[AZ]'` ;; c) C_OPT=`echo ${OPTARG} | tr '[az]' [AZ]'` ;; \?) echo $USAGE exit 1 ;; esac done ...
source share