Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true; do
- read x;
- case "$x" in
- y|yes)
- # Do something here.
- break;
- ;;
- n|no)
- # Do other things here;
- break;
- ;;
- *)
- echo "Invalid response.";
- ;;
- esac
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement