I am confused how to read in multiple options using getopts
and how to use one directory as the source for both options. Let me be more specific...
If I were to say:
./rpsm.sh -u -g /some/directory
or
./rpsm.sh -ug /some/directory
How would I use /some/directory
as the directory for both options -u
and -g
?
Also, how would I list the results of -u
then list the results of -g
(or vice versa) after running the script?