Please can someone explain what the following part of a script is doing please.
Nb: BILL_DATE is defined by user input via an application
BILL_DATE=""
# check parameters
while getopts ":m:c:t:w:r:a:" opt
do
case "$opt" in
p) ;;
m) ;;
c) ;;
t) ;;
w) ;;
r) ;;
a) BILL_DATE=$OPTARG;;
\?) echo "\nERROR: Invalid parameter passed"
exit 1;;
esac
done
Nb: BILL_DATE is defined by user input via an application
BILL_DATE=""
# check parameters
while getopts ":m:c:t:w:r:a:" opt
do
case "$opt" in
p) ;;
m) ;;
c) ;;
t) ;;
w) ;;
r) ;;
a) BILL_DATE=$OPTARG;;
\?) echo "\nERROR: Invalid parameter passed"
exit 1;;
esac
done