From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: brooklynwhite Newsgroups: gmane.emacs.help Subject: How to kill line beginning with specific string Date: Wed, 18 Nov 2009 10:51:29 -0800 (PST) Message-ID: <26413518.post@talk.nabble.com> 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 1258612232 11460 80.91.229.12 (19 Nov 2009 06:30:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Nov 2009 06:30:32 +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 07:30:26 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 1NB0XA-0004LE-2T for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2009 07:30:24 +0100 Original-Received: from localhost ([127.0.0.1]:45734 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NB0X9-0004I4-82 for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2009 01:30:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NApcv-0004k9-Gn for help-gnu-emacs@gnu.org; Wed, 18 Nov 2009 13:51:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NApcq-0004hz-MQ for Help-gnu-emacs@gnu.org; Wed, 18 Nov 2009 13:51:37 -0500 Original-Received: from [199.232.76.173] (port=38544 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NApcq-0004hj-Bp for Help-gnu-emacs@gnu.org; Wed, 18 Nov 2009 13:51:32 -0500 Original-Received: from kuber.nabble.com ([216.139.236.158]:57060) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NApcp-00048A-GS for Help-gnu-emacs@gnu.org; Wed, 18 Nov 2009 13:51:31 -0500 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NApcn-0005mA-6Q for Help-gnu-emacs@gnu.org; Wed, 18 Nov 2009 10:51:29 -0800 X-Nabble-From: white805@umn.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Thu, 19 Nov 2009 01:25:37 -0500 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:69898 Archived-At: 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. -- View this message in context: http://old.nabble.com/How-to-kill-line-beginning-with-specific-string-tp26413518p26413518.html Sent from the Emacs - Help mailing list archive at Nabble.com.