Reputation: 20448
When I run the following
awk -F\, '{print $2,":",$1}'
It prints
"First : Second"
How can I get
"First:Second"
Upvotes: 54
Views: 49631
Reputation: 1044
awk '{printf "%s:%s",$2,$1}'
You can also use printf instead of print to get more control over printing things.
Upvotes: 3