Re: mutt+sed - deleting line ranges
| Newsgroups | gmane.editors.sed.user |
|---|---|
| Message-ID | <[email protected]> |
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.
[Non-text portions of this message have been removed]