63 lines
967 B
Bash
63 lines
967 B
Bash
|
#!/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
|