Linux tr 命令


tr主要替换字符.
替换字符

[root@myserver test]# cat aaa 
asdsad
asdasd
asdasd
asdasd

[root@myserver test]# cat aaa | tr '\n' ','
asdsad,asdasd,asdasd,asdasd,[root@myserver test]# 

阅读全文