I want to add options to a custom command. I create my commands by putting a .sh document in /bin. Is it possible to add a "-x" option to my code? (i.e. customcommand -c)
I want to add options to a custom command. I create my commands by putting a .sh document in /bin. Is it possible to add a "-x" option to my code? (i.e. customcommand -c)
Sample file: multi_arg.sh
Test Run:
$ sh multi_arg.sh a b c
Another test run (with -c e.g)
$ sh ABC.sh -a -b -c
Related: https://unix.stackexchange.com/questions/3773/how-to-pass-parameters-to-an-alias