标签: centos mawk
我在centos中遇到Mawk的问题:
Mawk
cat /var/log/test-2018-10-02-*.csv | mawk -F',' '{ print $9 "," $11 ","$12"test" }' > try.tsv
问题是当我打印$12"hello"时 然后用vi打开它,我得到了test,test,test^Mhello
$12"hello"
vi
test,test,test^Mhello