Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/sh
- echo -n "Continue y/n: "
- read item
- case "$item" in
- y|Y) echo "OK!!!"
- ;;
- n|N) echo "Sorry ..."
- exit 0
- ;;
- *) echo "fail "
- ;;
- esac
- echo -n " 1 or 2: "
- read choise
- case "$choise" in
- 1) echo "Correct! "
- ;;
- 2) echo "No correct"
- ;;
- *) echo "Fail "
- exit 0
- ;;
- esac
- echo " Bye!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement