Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #######################
- # Bash Menu Scripting #
- ################################
- # GLOBAL VARIABLES IN ALL CAPS #
- #########################################################################################
- #########################################################################################
- ## ##
- # v1ral_ITS | ImPerialTeKSolutions@outlook.com | www.pastebin.com/u/v1ral_ITS #
- ## ##
- #########################################################################################
- #########################################################################################
- # Console colors
- W='\033[0m' # white (normal)
- R='\033[31m' # red
- G='\033[32m' # green
- O='\033[33m' # orange
- B='\033[34m' # blue
- P='\033[35m' # purple
- C='\033[36m' # cyan
- GR='\033[37m' # gray
- BLINK='\e[5m' # blinking text
- #####################
- # START #
- #####################
- PS3='Please enter your choice: '
- options=("`echo -e $O Update`" "`echo -e $B Upgrade`" "`echo -e $C Install`" "`echo -e $GR Autoremove`" "`echo -e $P Purge`" "`echo -e $W Kill_Processes`" "`echo -e $C Clear Screen`" "`echo -e $GR Enter Your Own Command`" "`echo -e $O List Upgradeable`" "`echo -e $BLINK Quit`")
- select opt in "${options[@]}"
- do
- case $opt in
- "`echo -e $O Update`")
- sudo apt-get -y update
- echo -e $C"Your options again are, press [E]nter \n `echo $options`"
- ;;
- "`echo -e $B Upgrade`")
- sudo apt-get -y upgrade
- echo -e $C"Your options again are, press [E]nter \n `echo $options`"
- ;;
- "`echo -e $C Install`")
- echo -n "What do you want to install?: "
- read INST
- sudo apt-get -y install $INST
- echo -e $C"Your options again are, press [E]nter \n `echo $options`"
- ;;
- "`echo -e $GR Autoremove`")
- sudo apt-get -y autoremove
- echo -e $C"Your options again are, press [E]nter \n `echo $options`"
- ;;
- "`echo -e $P Purge`")
- echo -n "What do you want to purge?: "
- read PGE
- sudo apt-get -y purge $PGE
- echo -e $C"Your options again are, press [E]nter \n `echo $options`"
- ;;
- "`echo -e $W Kill_Processes`")
- echo -e $R"`killps`"
- echo -e $C"Your options again are, press [E]nter \n `echo $options`"
- ;;
- "`echo -e $C Clear Screen`")
- echo -e $O"`clear`"
- echo -e $C"Your options again are, press [E]nter \n `echo $options`"
- ;;
- "`echo -e $GR Enter Your Own Command`")
- MSG=$(zenity --title "Terminal Command Entry" --entry )
- sudo $MSG
- echo -e $C"Your options again are, press [E]nter \n `echo $options`"
- ;;
- "`echo -e $O List Upgradeable`")
- sudo apt list --upgradeable
- echo -e $C"Your options again are, press [E]nter \n `echo $options`"
- ;;
- "`echo -e $BLINK Quit`")
- break
- ;;
- *) echo "invalid option";;
- esac
- done
- echo -en "Please Email us @ ImPerialTeKSolutions@outlook.com for any and all questions comments, freelance work, and any other projects. We like feedback, thanks!"
- sleep 4
- # Console colors ##############
- W='\033[0m' # white (normal) #
- R='\033[31m' # red #
- G='\033[32m' # green #
- O='\033[33m' # orange #
- B='\033[34m' # blue #
- P='\033[35m' # purple #
- C='\033[36m' # cyan #
- GR='\033[37m' # gray #
- BLINK='\e[5m' # blinking text #
- #
- #
- ###############################
- # REMINDER #
- ###############################
- cd "`pwd`";
- echo -e \n\n\n`clear`;
- echo -e $GR" `date` ";
- echo -e $O" Shell Scripts Made For You........";
- echo -e $P" Your present working directory is `pwd`...";
- echo -e Inside....
- ls;
- echo -e $W"
- $R $BLINK########################################################$G##################################################################
- $G $BLINK##### * $R * ####
- $GR $BLINK##### SHELL SCRIPTS MADE EASY FOR THE LINUX USER $C 2018_vet ImP.TeK_Solutions TM ####
- $G $BLINK##### * $R * ####
- $R $BLINK########################################################$G##################################################################
- "
- date
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement