I want to parse some arguments to a bash script using getopts but want to be able to access the remaining args that are not included in the option list. So for example, if I have a call:
% script -a -b param -c param -d other arguments here
I would have:
while getopts "ab:c:d" opt ; do . done
What is the easiest way to get "other arguments here", which should be unprocessed by getopts?