Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. echo -en "n Please write a number [1-5] to pick a language: "
  2. echo -en "n 1) English."
  3. echo -en "n 2) Spanish."
  4. echo -en "n 3) Italian."
  5. echo -en "n 4) so on..."
  6. echo -en "n 5) None of the Above."
  7. read langNum
  8. case $langNum in
  9. "1")
  10. # if English. pick an operating system (with switch case and var)
  11. ;;
  12. "2")
  13. # if Spanish. pick an operating system (with switch case and var)
  14. ;;
  15. "3")
  16. # if Italian. pick an operating system (with switch case and var)
  17. ;;
  18. "4")
  19. # if so on... pick an operating system (with switch case and var)
  20. ;;
  21. "5")
  22. # if None of the Above. pick an operating system (with switch case and var)
  23. ;;
  24. *)
  25. echo "Sorry, I don't understand, pick a number [1-5] related to the preferred language" ;;
  26. return ;;
  27.  
  28. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement