#大寫轉小寫
============= upper_to_lower.sh =================
value="$(echo $1 | tr '[:upper:]' '[:lower:]')"
echo $value
執行:
./upper_to_lower.sh AA ==> aa
#小寫轉大寫
============= lower_to_upper_.sh =================
value="$(echo $1 | tr '[:upper:]' '[:lower:]')"
echo $value
執行:
./upper_to_lower.sh aa ==> AA