awk queries
Hi,
I have a file that consists of a column as follows:
1111
2222
3333
4444
I use the following to convert to row:
awk '{printf("%s,",$0)}' file
but the output contains the command prompt at the end.
ie: 1111,2222,3333,4444,$
How to have the output without the command prompt?
ie: 1111,2222,3333,4444
Thanks in advance.
|