procmail
[Top] [All Lists]

Re: Removing double newlines.

2002-03-13 00:09:50
--On Tuesday, March 12, 2002 1:18 PM -0600 "David W. Tamkin" <dattier(_at_)ripco(_dot_)com> wrote:

:0HBfw
* ()$$$.|^^.+$$
| sed -e '/./,/^$/ {' -e '/^$/d' -e '}'

It looks for two consecutive blank lines anywhere except the end, or a
blank line after the top line of the head; if it finds either, it runs
the whole message through a sed script that deletes the first blank line
of every group of one or more blank lines.

Thanks, that got me running.

Daniel T. Staal


------------------------------------------------------------------------
This email copyright the author.  Unless otherwise noted, you are
expressly allowed to retransmit, quote, or otherwise use the contents
for non-commercial purposes.  This copyright will expire 5 years after
the author's death, or in 30 years, whichever is longer, unless such a
period is in excess of local copyright law.
------------------------------------------------------------------------
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>