Linux cat

字母数字转换

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

你可能感兴趣的:(Linux cat)