Guest User

Untitled

a guest
Jan 19th, 2018
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. function doSomething(){
  4. echo "Change to your needs"
  5. exit 0
  6. }
  7.  
  8. function doSomething1(){
  9. echo "Change to your needs 1"
  10. exit 0
  11. }
  12.  
  13. echo ""
  14. echo "########################################"
  15. echo -e "# \033[1;31mXXXXX XXXXX #$%&&//$ \e[m "
  16. echo -e "# \033[0;31m@brief\e[m The script will stop and "
  17. echo "# restart the docker machines for the "
  18. echo "# SB Elastic API and ELK project. "
  19. echo "#"
  20. echo -e "# \033[0;31m@author\e[m jmrs83@gmail.com 2017 "
  21. echo "########################################"
  22. echo ""
  23.  
  24. PS3="Please choose an option "
  25.  
  26. select option in go other quit
  27. do
  28. case $option in
  29. go)
  30. doSomething;;
  31. other)
  32. doSomething1;;
  33. quit)
  34. break;;
  35. esac
  36. done
Add Comment
Please, Sign In to add comment