📌  相关文章
📜  如何在 bash 脚本中将字符与大写进行比较 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:55.709000             🧑  作者: Mango

代码示例1
echo "enter a char"
read c

if [[ $c == [A-Z] ]];
then
    echo "upper"
elif [[ $c == [a-z] ]];
then
    echo "lower"
else 
    echo "Digit or special symbols!"
fi