Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while true; do
- echo "Menu:"
- echo "1. Option 1"
- echo "2. Option 2"
- echo "3. Option 3"
- echo "4. Exit"
- read -p "Enter your choice: " choice
- case $choice in
- 1)
- echo "Executing Option 1..."
- # Add code for Option 1 here
- ;;
- 2)
- echo "Executing Option 2..."
- # Add code for Option 2 here
- ;;
- 3)
- echo "Executing Option 3..."
- # Add code for Option 3 here
- ;;
- 4)
- echo "Exiting..."
- break # Exit the loop
- ;;
- *)
- echo "Invalid choice. Please try again."
- ;;
- esac
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement