使用shell进行大小写转换

=AFEWBfwefewSAFEWV;echo $f | tr "[:upper:]" "[:lower:]"
转换小写为大写:
f=AFEWBfwefewSAFEWV;echo $f | tr "[:lower:]" "[:upper:]"

tr - translate or delete characters

你可能感兴趣的:(使用shell进行大小写转换)