From eed18bf6798427d667f3a1e4c06bf1ba7642fc17 Mon Sep 17 00:00:00 2001 From: mollusk Date: Thu, 8 Oct 2020 03:42:33 -0700 Subject: [PATCH] New Script: billpay.sh: menu to launch bill sites --- billpay.sh | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100755 billpay.sh diff --git a/billpay.sh b/billpay.sh new file mode 100755 index 0000000..5bd0e5f --- /dev/null +++ b/billpay.sh @@ -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 \ No newline at end of file