/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/bin/bash while [ "$#" -gt 0 ] do case $1 in -h | --help) echo "Show program help for $(basename $0)" shift ;; -l | --list) echo "List the options" shift ;; *) echo "Other options" shift ;; esac done