Archive for June 29th, 2007

Replace \n with another String

The command to convert all \n in a file to another string - very useful for list code generation.


perl -ne 's/\\n/\',\'/g;print;' file.txt>new.txt