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
- ME=$($USER)
- [ "$UID" -eq 0 ] || exec sudo "$0" "$@"
- LINK=$(kdialog --title "ImPerial TeK. EZ_Shell-Scripts for YOU!" --inputbox "Enter the link exactly to the youtube video to download and convert to .mp3" )
- sudo youtube-dl -o "%(title)s.%(ext)s" --extract-audio -x --audio-format mp3 --audio-quality 320k "$LINK"
- echo "Awesome!!!"
- sudo chown $ME -R /home/$ME/Music
- PS3='Would You Like To Enter Another Link And Download More?: '
- options=("`echo -e $R Yes`" "`echo -e $B No`")
- select opt in "${options[@]}"
- do
- case $opt in
- "`echo -e $R Yes`")
- mp3rip
- echo -e $GR"Would you like to enter another link and download more? `echo $options`"
- ;;
- "`echo -e $B No`")
- echo -e $O"Thanks, your all done!"
- break
- ;;
- *) echo invalid option;;
- esac
- done
- echo -e $P"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 #
- ###############################
- # 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########################################################$G##################################################################
- $G##### * $R * ####
- $GR##### SHELL SCRIPTS MADE EASY FOR THE LINUX USER $C 2018_vet ImP.TeK_Solutions TM ####
- $G##### * $R * ####
- $R########################################################$G##################################################################
- "
- date
- echo " "
- echo " All "
- echo " Yours "
- echo " You "
- echo " Dirty "
- echo " PiraTe "
- echo " \ / "
- echo " "
- echo " \ / "
- echo " \/ "
- echo " "
- echo " / \ "
- echo " "
- echo " / \ "
Add Comment
Please, Sign In to add comment