Hi lads,
What's the best and / or easiest way to parse options passed through to a bash script? I've had a look at getopt(s) but not sure how to separate the options from the regular arguments easily.
For example, how would I separate the following args:
./myscript -n -ab someparam -c someoption
into
a=true
b=true
n=true
c="someoption"
myparam="someparam"
I would imagine this to be a pretty common task.
Any help appreciated.