shell shell编程学习之tr命令 tr tr可以对标准输入的字符进行替换、删除、压缩 1、替换 -bash-3.2# cat 1.txt a b c -bash-3.2# cat 1.txt |tr 'a-c' 'A-C' A B C... 2012年11月13日 发表评论 阅读全文