procmail
[Top] [All Lists]

Re: How to avoid s/\n/ /g when unfolding a header

2004-12-14 13:37:58
On Mon, 13 Dec 2004, 14:40 GMT+01 Dallman Ross wrote:

On Mon, Dec 13, 2004 at 12:59:03PM +0100, Robert Allerstorfer wrote:

[...]

The next step is to delete all \n. Can this also done with sed?

Yes, 

   sed "s/$NL//g"

should work.

That does /not/ work, unfortunately. The g option in sed substitutions
applies to each line and not to the entire multiline string.

rob.


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail