tr

参考

tr -dc

tr -d

大小写替换

echo abc|tr '[a-z]' '[A-Z]'  

str="This is a Bash Shell script."

newstr=`tr '[A-Z]' '[a-z]' <<<"$str"`

posted on 2015-01-21 21:49  寒星12345678999  阅读(118)  评论(0编辑  收藏  举报