Sample Header Ad - 728x90

More than 1 option when launch script

0 votes
2 answers
86 views
Is there a way to pass more than one option when running a script? My script has this case: case "$1" in b) backup_start $1 ;; h) _usage ;; *) echo 'Invalid option, -h for help' ;; esac I run my script with: myscript -b backupname But sometimes I would like to run the script with an option with another argument...that I will then use in case inside the script: myscript -b backupname -t mynewarg
Asked by ancoling67 (109 rep)
Mar 9, 2025, 07:56 PM
Last activity: Mar 14, 2025, 07:11 PM