simple sed question
I've been searching for a while now, but everything I've found wants to do the exact opposite of what I need.
I'm looking to replace all newlines in a file with the actual "\n" string. So, for example. If my file contained: Quote:
Quote:
|
The following should work
Code:
sed -e :a -e ';$!N;s/\n/\\n/;ta' file |
UGH! you sir are a saint. Thanks a million!
|
|
All times are GMT -5. The time now is 02:59 PM. |