Re: mutt+sed - deleting line ranges

"[email protected] [sed-users]" <[email protected]>
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]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.