From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: brooklynwhite Newsgroups: gmane.emacs.help Subject: Re: How to kill line beginning with specific string Date: Thu, 19 Nov 2009 09:12:45 -0800 (PST) Message-ID: <26421398.post@talk.nabble.com> References: <26413518.post@talk.nabble.com> <874oorui9j.wl%djcb@djcbsoftware.nl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1258651724 12072 80.91.229.12 (19 Nov 2009 17:28:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Nov 2009 17:28:44 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 19 18:28:36 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 1NBAo8-0005Lc-BX for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2009 18:28:36 +0100 Original-Received: from localhost ([127.0.0.1]:54197 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBAo7-0006xM-O7 for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2009 12:28:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBAYu-0002Cu-Vd for help-gnu-emacs@gnu.org; Thu, 19 Nov 2009 12:12:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBAYp-00029b-Rh for Help-gnu-emacs@gnu.org; Thu, 19 Nov 2009 12:12:52 -0500 Original-Received: from [199.232.76.173] (port=42748 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBAYp-00029X-KI for Help-gnu-emacs@gnu.org; Thu, 19 Nov 2009 12:12:47 -0500 Original-Received: from kuber.nabble.com ([216.139.236.158]:39483) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NBAYp-00008y-8s for Help-gnu-emacs@gnu.org; Thu, 19 Nov 2009 12:12:47 -0500 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NBAYn-0006wU-44 for Help-gnu-emacs@gnu.org; Thu, 19 Nov 2009 09:12:45 -0800 In-Reply-To: <874oorui9j.wl%djcb@djcbsoftware.nl> X-Nabble-From: white805@umn.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:69935 Archived-At: Your help is much appreciated!!! djcb wrote: > > >>>>>> brooklynwhite writes: > > > I need to figure out how to kill a series of lines in a text file > that all > > begin with the same string. The format of the lines is: > > 2000 001 00 AIR TEMP 354 > > > The second and third expressions in the line change with subsequent > lines, > > e.g.: > > > 2000 002 01 AIR TEMP 354 > > > Is there a simple way for me to search for and kill all of these > lines > > without having to repeatedly enter the search mode and type ctrl-k > when the > > line is found? I realize this may be a silly question so thanks for > your > > patience and help. > > M-x flush-lines > > Best wishes, > Dirk. > > -- > Dirk-Jan C. Binnema Helsinki, Finland > e:djcb@djcbsoftware.nl w:www.djcbsoftware.nl > pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C > > > > -- View this message in context: http://old.nabble.com/How-to-kill-line-beginning-with-specific-string-tp26413518p26421398.html Sent from the Emacs - Help mailing list archive at Nabble.com.