I have the following shell script#! /bin/bashecho -e Enter any character: \cread valuecase $value in    [a-z] )        echo You have entered a lower case alphabet;;    [A-Z] )        echo You have entered an upper case alphabet;;    [0-9] )        echo You have entered a number;;    [?] )        echo You have entered a special character;;    [*] )        echo Unknown value;;esacHere, when I enter a upper case letter likeKI get the outputYou have entered a lower case alphabetHow to correct it?
In shell script case statement unable to recognize upper case letters
shell script
Here, you need to set LANG as CIn terminal typeLANG=CThe LANG environment variable indicates the language/locale and encoding, where C is the language setting