Tuesday, December 21, 2010

Joining all lines in a file with comma

awk '{ printf "%s," ,$0 }' file.txt > newfile.txt

No comments:

Blog Archive