[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to kill line beginning with specific string
From: |
Dirk-Jan C . Binnema |
Subject: |
Re: How to kill line beginning with specific string |
Date: |
Thu, 19 Nov 2009 08:43:20 +0200 |
User-agent: |
Wanderlust/2.15.6 (Almost Unreal) Emacs/23.1 Mule/6.0 (HANACHIRUSATO) |
>>>>> brooklynwhite <white805@umn.edu> 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