Advertisement
Jackspade9624

menue 2

Apr 19th, 2025
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. while true; do
  4. echo "Menu:"
  5. echo "1. Option 1"
  6. echo "2. Option 2"
  7. echo "3. Option 3"
  8. echo "4. Exit"
  9.  
  10. read -p "Enter your choice: " choice
  11.  
  12. case $choice in
  13. 1)
  14. echo "Executing Option 1..."
  15. # Add code for Option 1 here
  16. ;;
  17. 2)
  18. echo "Executing Option 2..."
  19. # Add code for Option 2 here
  20. ;;
  21. 3)
  22. echo "Executing Option 3..."
  23. # Add code for Option 3 here
  24. ;;
  25. 4)
  26. echo "Exiting..."
  27. break # Exit the loop
  28. ;;
  29. *)
  30. echo "Invalid choice. Please try again."
  31. ;;
  32. esac
  33. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement