From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dirk-Jan C. Binnema Newsgroups: gmane.emacs.help Subject: Re: How to kill line beginning with specific string Date: Thu, 19 Nov 2009 08:43:20 +0200 Organization: DJCBSoftware Message-ID: <874oorui9j.wl%djcb@djcbsoftware.nl> References: <26413518.post@talk.nabble.com> Reply-To: djcb@djcbsoftware.nl NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1258613258 13491 80.91.229.12 (19 Nov 2009 06:47:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Nov 2009 06:47:38 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: brooklynwhite Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 19 07:47:30 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 1NB0ng-000110-OV for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2009 07:47:29 +0100 Original-Received: from localhost ([127.0.0.1]:51436 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NB0ng-0003kf-CK for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2009 01:47:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NB0kn-0001gF-If for help-gnu-emacs@gnu.org; Thu, 19 Nov 2009 01:44:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NB0ki-0001Zn-0M for Help-gnu-emacs@gnu.org; Thu, 19 Nov 2009 01:44:28 -0500 Original-Received: from [199.232.76.173] (port=57812 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NB0kh-0001ZG-MP for Help-gnu-emacs@gnu.org; Thu, 19 Nov 2009 01:44:23 -0500 Original-Received: from gw03.mail.saunalahti.fi ([195.197.172.111]:33323) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NB0kh-0001Tq-8O for Help-gnu-emacs@gnu.org; Thu, 19 Nov 2009 01:44:23 -0500 Original-Received: from djcbsoftware.nl (a88-112-254-208.elisa-laajakaista.fi [88.112.254.208]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by gw03.mail.saunalahti.fi (Postfix) with ESMTP id 7A8DB21659B; Thu, 19 Nov 2009 08:44:17 +0200 (EET) Original-Received: from cthulhu.mindcrime.djcbsoftware.nl (localhost [127.0.0.1]) by djcbsoftware.nl (Postfix) with ESMTP id 95D7B39C502; Thu, 19 Nov 2009 08:43:20 +0200 (EET) In-Reply-To: <26413518.post@talk.nabble.com> Mail-Reply-To: djcb@djcbsoftware.nl User-Agent: Wanderlust/2.15.6 (Almost Unreal) Emacs/23.1 Mule/6.0 (HANACHIRUSATO) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:69899 Archived-At: >>>>> 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