Linux命令-tr

  • tr命令用于转换文本文件中的字符
[root@localhost test]# cat 111.txt
abcdefg
asdfoui
asdfqer
[root@localhost test]# cat 111.txt | tr [a-z] [A-Z] > 222.txt
[root@localhost test]# cat 222.txt
ABCDEFG
ASDFOUI
ASDFQER
[root@localhost test]#

 

posted @ 2016-09-07 12:22  北海悟空  阅读(236)  评论(0编辑  收藏  举报