Linux cat 字母数字转换

小写转换成大写 
cat test.txt | tr [a-z] [A-Z]

数字转换成大写
cat test.txt | tr [0-9] [A-Z]

猜你喜欢

转载自www.cnblogs.com/jianeng/p/9339360.html