write a shell script to check enter character is digit , alphabet or special character using switch case.

echo enter any character:
read ch
case $ch in 
[0-9])
echo you entered digit
;;
[A-Za-z])
echo you enter alphabet
;;
*)
echo you entered special character

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *