2

I write below shell script to check whether given character is in uppercase or lowercase..

read d
case $d in
[a-z]) echo "Character is in Lowercase";;
[A-Z]) echo "Character is in Uppercase";;
esac

But when I enter any case in Uppercase it displays the output "charecter is in Lowercase" I just want to create simple script with basic programming. Is there any solution??

Anthon
  • 79,293
Dip
  • 680

0 Answers0