I have a script myscript.sh
#!/bin/sh echo $1 $2
which is used something like ...
./myscript.sh foo bar
which gives me an output of ...
foo bar
but how can i make this script include custom command options? for example ...
./myscript.sh -a foo and corespond to $1
and
./myscript.sh -b bar and corespond to $2
a:bc:
optstring from (but do not care to quote arithm or other var expansions). They're cut&pasting from "great" Q&As.