help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Remove all lines containig a keyword


From: Bourgneuf Francois
Subject: RE: Remove all lines containig a keyword
Date: Fri, 3 Oct 2008 15:54:18 +0200

C-M-% .*sold.*C-q C-j Enter !

I explain :
C-M-% : query-replace-regexp
.*sold.*C-q C-j : 0-n character followed by "sold" followed by 0-n character 
followed by NEWLINE ( C-q C-j )
Bour9

> -----Message d'origine-----
> De : 
> address@hidden
> g 
> [mailto:help-gnu-emacs-bounces+francois.bourgneuf=groupe-mma.f
> address@hidden De la part de Chris Patterson
> Envoyé : lundi 29 septembre 2008 04:46
> À : address@hidden
> Objet : Re: Remove all lines containig a keyword
> 
> Christian Herenz <address@hidden> writes:
> 
> > Hi,
> > I have a huge list of "stuff" I sell / sold.
> > To print out an actual list, without the stuff that is sold already,
> > It would be nice to have a command for doing this task automated -
> > Remove all lines with the keyword "sold".
> > Thanks for your Help,
> > Christian
> 
> Looks like you have several suggestions. I'll chime in with M-x
> flush-lines.
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]