echo;echo"Hit a key, then hit return."read Keypress
case"$Keypress"in
[[:lower:]] ) echo"Lowercase letter";;
[[:upper:]] ) echo"Uppercase letter";;
[0-9] ) echo"Digit";;
* ) echo"Punctuation, whitespace, or other";;
esac# Allows ranges of characters in [square brackets],#+ or POSIX ranges in [[double square brackets.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.