How can I get awk to print without white space?

前端 未结 2 1947
萌比男神i
萌比男神i 2020-12-18 17:56

When I run the following

awk -F\\, \'{print $2,\":\",$1}\'

It prints

\"First : Second\"

How can I get

相关标签:
2条回答
  • 2020-12-18 18:15

    Try this:

    awk -F\, '{print $2":"$1}'
    
    0 讨论(0)
  • 2020-12-18 18:24

    Omit the ,s

    awk -F\, '{print $2 ":" $1}'
    
    0 讨论(0)
提交回复
热议问题