Martin told Sean,
| You can write that without newlines (valid in GNU sed 3.02) as
|
| | sed -e '/^$/N; /^\n$/{N; /^\n\n$/D; }'
And as I meant to say when I was making the same suggestion, it would be a
good idea to unset SHELLMETAS temporarily so that the semicolons won't
trigger an unnecessary shell. (Sean knows that, I realize; I'm pointing
that out for the general readership here.)
savemetas=$SHELLMETAS # save the value in another variable
SHELLMETAS # disconnected variable name unsets it
:0bf
| sed -e '/^$/N; /^\n$/{N; /^\n\n$/D; }'
SHELLMETAS=$savemetas # restore original value
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail