Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This is a very simple shellscript menu.
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment