6

[bash] option followed by argument list

view full story
linux-howto

http://www.linuxquestions.org – I'd like to pass the following arguments to a bash script in any order: Code: myscript -e <email> -f <file1> <file2> ... -y <year> I read the argument list in a switch shift loop. I figured out how to read the filelist but only if -f is the last option. Any ideas how to position the file list anywhere in the argument list? (HowTos)