procmail
[Top] [All Lists]

Re: Breaking news alerts (procmail and sed)

2001-12-05 16:30:16
deedsmis(_at_)aculink(_dot_)net wrote,

| "Timothy J. Luoma" stated the following:
| >
| > 2) Is there a way to make
| >         sed '/For more details/,$d'
| >    case insensitive?

| Use a capital 'I' before the comma *or* before the 'd' without the
| comma and '$' sign.

Only a few versions of sed honor that flag.  Generally, the answer to
Timothy's question is no.  However, this time there's a solution:

sed -ne h -e y/ADEfILMORST/adeFilmorst/ \
 -e '/For more details/q' -eg -ep

If that's the action in a procmail recipe, be sure to use the `i' flag on
it.



_______________________________________________
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>