Can bash's getopts function handle switches as words?
Hello friends
I've written some bash scripts that uses switches with the bash's built-in getopts function. But the switches I am currently using are single letters types. Is it possible to use words with getopts to my bash scripts?
For example instead of using a switch this way
myscript -o filename
I want to use a word switch like so
myscript -out filename
Thanks
Last edited by nyc_rr; 06-09-2014 at 02:57 PM.
|