| Newsgroups |
gmane.editors.sed.user |
| Message-ID |
<[email protected]> |
* Rakesh Sharma <[email protected]> [2016-01-19 13:57]:
> One way to accomplish the pruning can be the following:
>
> sed -e '
> /^[-][-]*$/{
> $q;N;$q;N
> /\nPosted by[:] Sven Guckes <maillists-yahoo@guckes[.]net>\n[-][-]*$/d
> }
> '
> YMMV in case of the regex for the "Posted by" line.
well, i got this now in my display_filter sed file:
# by Rakesh Sharma [email protected]
/^--*$/{
$q;N;$q;N
/\nPosted by:.*\n--*$/d
}
that works! now i wont have to see those lines
in sed-users mails until i reply to them, ;)
thanks, Rakesh! :)
now to understand it all.. "$q"?
my biggest gripe with sed syntax is that
you have to use literal line breaks.
so much about "one-liners". *sigh*
ps: how does yahoogroups staff actually
call that "--- Posted by: ---" thing?
Sven