On 04/02/2014 01:14, Joseph wrote:
> I have a text file.  How do I search and replace "carriage return"?
> 


That is a horrible one to solve :-)

All the usual tools (grep, sed, tr) are line oriented so they will take
one line and replace the CR at the end with something else plus a CR!
i.e. they don't do multi-line search and replace easily. I usually end
up resorting to using a text-editor....

But sed can be persuaded to do it, if your really need a programmatic
solution:

http://sed.sourceforge.net/sedfaq4.html#s4.23.3


-- 
Alan McKinnon
alan.mckin...@gmail.com


Reply via email to