/ Published in: Bash
How to combine getopts options with (-) and non-options.
After processing all options, variable OPTIND contains the value of the first non-option (commandline argument that doesn't start with (-)).
Shift command will clean previous commandline options.
After processing all options, variable OPTIND contains the value of the first non-option (commandline argument that doesn't start with (-)).
Shift command will clean previous commandline options.