Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "Which fruit do you like most?"
- read fruit
- case $fruit in
- apple)
- echo 'Mmmmh... I like those!'
- ;;
- banana)
- echo 'Hm, a bit awry, no?'
- ;;
- orange|tangerine)
- echo $'Eeeks! I don\'t like those!\nGo away!'
- exit 1
- ;;
- *)
- echo "Unknown fruit - sure it isn't toxic?"
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement