Linux命令-tr

  • tr命令用于转换文本文件中的字符
[root@localhost test]# cat .txt
abcdefg
asdfoui
asdfqer
[root@localhost test]# cat .txt | tr [a-z] [A-Z] > .txt
[root@localhost test]# cat .txt
ABCDEFG
ASDFOUI
ASDFQER
[root@localhost test]#
上一篇:CSS层叠样式选择器归纳


下一篇:java post json sample