New Script: billpay.sh: menu to launch bill sites

This commit is contained in:
mollusk 2020-10-08 03:42:33 -07:00
parent cf87160b26
commit eed18bf679

63
billpay.sh Executable file
View File

@ -0,0 +1,63 @@
#!/bin/bash
main_menu(){
PS3="Enter a number: "
select bill in Electric Gas Internet Water
do
case "${REPLY}" in
1) xdg-open "https://aps.com"
;;
2) xdg-open "https://uesaz.com"
;;
3) xdg-open "https://sparklight.com"
;;
4) xdg-open "https://xpressbillpay.com/"
;;
q) exit 0
;;
*) echo "Please choose an existing option"
;;
esac
done
}
case "${1}" in
-e) xdg-open "https://aps.com"
;;
-g) xdg-open "https://uesaz.com"
;;
-i) xdg-open "https://sparklight.com"
;;
-w) xdg-open "https://xpressbillpay.com/"
;;
-h|--help|help)
echo """
$0 [-e] [-g] [-i] [-w]
-e Electric bill
-g Gas bill
-i Internet bill
-w Water bill
"""
;;
*) main_menu
;;
esac