Dec 16, 2009

Replacing newline with comma


cat 'FILENAME'|awk -F'\n' '{for(i=1;i<=NF;i++) printf "%s,", $i}'