skip to main
|
skip to sidebar
Tips and Tricks on programming
C, C++, Unix, Linux, Perl, PHP, MySql, Postgres and Oracle.
Dec 16, 2009
Replacing newline with comma
cat '
FILENAME
'|awk -F'\n' '{for(i=1;i<=NF;i++) printf "%s,", $i
}'
Newer Post
Older Post
Home
Labels
Linux
(22)
Perl
(6)
Unix
(22)
Vi Editor
(4)
The D@rk Kn!ght
View my complete profile