- case "$letter" in
- [D-Z] | [d-z])
- echo "You entered $letter"
- ;;
- B|b)
- echo "You entered a b"
- ;;
- #note how the program will accept an upper or lower case c
- C|c)
- echo "You entered a C"
- ;;
- #here is if you entered an a
- A|a)
- echo "You entered a A"
- ;;
- #the following * matches anything not found in the first 3 cases
- *)
- echo "You did not enter an A, B or
Raw Paste