From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Martin Newsgroups: gmane.emacs.help Subject: Re: delete non-matching lines Date: Wed, 12 Aug 2009 07:54:06 +0200 Organization: Arcor Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250059271 21842 80.91.229.12 (12 Aug 2009 06:41:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Aug 2009 06:41:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 12 08:41:04 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mb7WA-0007D5-Ri for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Aug 2009 08:41:03 +0200 Original-Received: from localhost ([127.0.0.1]:37608 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mb7W8-0003nn-Dw for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Aug 2009 02:41:00 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!newsfeed.freenet.de!newsfeed01.chello.at!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) Cancel-Lock: sha1:tlqPrJfLnPbLyrYbSp3E9de6ERI= Original-Lines: 25 Original-NNTP-Posting-Date: 12 Aug 2009 07:54:06 CEST Original-NNTP-Posting-Host: 9eef1ded.newsspool1.arcor-online.net Original-X-Trace: DXC=SC=ebUY; NL\\9P[:DUn00Qic==]BZ:af^4Fo<]lROoRQ^YC2XCjHcbYdHEGP3NHfZ_1S9GGF?]VCWGSHEoSN`\8Yf^14e=PjcD\R9boY; 9DVC] Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: news.stanford.edu gnu.emacs.help:171899 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67075 Archived-At: Nachiket Gokhale writes: > How do I delete all lines starting with > > "ESPN" > > And, the opposite: > > How do I delete all lines not starting with > > "ESPN" > > Thanks in advance, > > -Nachiket delete-matching-lines M-x ... RET Delete lines containing matches for REGEXP. delete-non-matching-lines M-x ... RET Delete all lines except those containing matches for REGEXP. Martin -- parozusa at web dot de