procmail
[Top] [All Lists]

Re: stripping 'footer ads' from mailing lists

2000-04-09 12:00:27
Darren Wyn Rees <merlin(_at_)netlink(_dot_)co(_dot_)uk> writes:
On Sat, Apr 01, 2000 at 10:41:39AM -0600, David W. Tamkin wrote:

Otherwise, you can use sed:
 :0bfi
 * pattern
 | sed -n '/pattern/q' -ep
#| sed '/pattern/q' # instead of above if pattern should be kept

The above syntax doesn't work with my sed (GNU v.3.02).
I'm working through your suggestions.  Thanks for offering them.

You need two -e flags, one for two line of the sed program:

        :0 bfi
        * pattern
        | sed -n -e '/pattern/q' -e p


Philip Guenther

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