I have a bash script with command line params that may look like this:
./myscript.sh -P1 valueofP1 -A3 valueofA3
is there any common method of getting the values shown here and having local script variables P1 and A3 get the value that follows in the next parameter?
shift
usage: