摘要: tr只能通过stdin,无法通过命令行接受参数1、将输入字符大写转换成小写:echo "HELLO WORLD" | tr 'A-Z' 'a-z' (cat test.txt | tr 'A-Z' 'a-z')2、用tr删除字符串中的数字:echo "hello 123 world 456" | tr -d '0-9' 阅读全文
posted @ 2013-11-26 09:26 iplaysoft 阅读(207) 评论(0) 推荐(0)