[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to kill line beginning with specific string
From: |
brooklynwhite |
Subject: |
Re: How to kill line beginning with specific string |
Date: |
Thu, 19 Nov 2009 09:12:45 -0800 (PST) |
Your help is much appreciated!!!
djcb wrote:
>
>
>>>>>> 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
>
>
>
>
--
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.