Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- function doSomething(){
- echo "Change to your needs"
- exit 0
- }
- function doSomething1(){
- echo "Change to your needs 1"
- exit 0
- }
- echo ""
- echo "########################################"
- echo -e "# \033[1;31mXXXXX XXXXX #$%&&//$ \e[m "
- echo -e "# \033[0;31m@brief\e[m The script will stop and "
- echo "# restart the docker machines for the "
- echo "# SB Elastic API and ELK project. "
- echo "#"
- echo -e "# \033[0;31m@author\e[m jmrs83@gmail.com 2017 "
- echo "########################################"
- echo ""
- PS3="Please choose an option "
- select option in go other quit
- do
- case $option in
- go)
- doSomething;;
- other)
- doSomething1;;
- quit)
- break;;
- esac
- done
Add Comment
Please, Sign In to add comment