First page Back Continue Last page Graphics
while getopts :xy:z opt_char; do #repeated
while getopts :xy:z opt_char; do #repeated
case $opt_char in
x) echo $opt_char found
;;
y) echo $opt_char found \
with \"$OPTARG\"
;;
z) echo $opt_char found
;;
*) echo option error index \
$(( $OPTIND - 1 )) = \"$opt_char\"
exit 1
;;
esac
done