Thursday, 8 August 2013

Linux-Separate output of awk script with "space" not "enter"

Linux-Separate output of awk script with "space" not "enter"

I know normally the output of an awk script was separated with enter. For
example the script below:
awk '{print $1}' f.txt
The file f.txt's content is like:
awk bwk cwk
dwk ewk fwk
gwk hwk iwk
Then the output of the script would be like:
awk
dwk
gwk
Is there any way to get the output like?
awk dwk gwk
Thank you!

No comments:

Post a Comment