Advertisement
Guest User

Untitled

a guest
May 4th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. execFunc() {
  2. cat <<-EOF
  3.  
  4. 1. Backup App 1
  5. 2. Backup App 2
  6. 3. Backup App 3
  7. 4. Backup Everything
  8.  
  9. Option:
  10. EOF
  11. }
  12.  
  13. while :
  14. do
  15. execFunc;
  16. read -r choice
  17.  
  18. case $choice in
  19. 1) backupApp1;;
  20. 2) backupApp2;;
  21. 3) backupApp3;;
  22. 4) backupEverything;;
  23. *) exit;;
  24. esac
  25. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement