On Sun, 4 Aug 2002, Hanspeter Roth wrote:
On Aug 04 at 16:32, Udi Mottelo spoke:
sed -e '/./{H;$!d;}' -e 'x;/unsubscribe from this/d;/Yahoo/d'
It will delete the paragraph which contains the strings
"unsubscribe from this" or "Yahoo".
Ok. This accomplishes the main task. Thanks.
Is there a recipe to delete the remaining trailing blank lines?
Yes:
sed -e :a -e '/^\n*$/{$d;N;ba' -e '}'
Bye,
Udi
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail