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 : 
> help-gnu-emacs-bounces+francois.bourgneuf=groupe-mma.fr@gnu.or
> g 
> [mailto:help-gnu-emacs-bounces+francois.bourgneuf=groupe-mma.f
> r@gnu.org] De la part de Chris Patterson
> Envoyé : lundi 29 septembre 2008 04:46
> À : help-gnu-emacs@gnu.org
> Objet : Re: Remove all lines containig a keyword
> 
> Christian Herenz <herenz@physik.hu-berlin.de> 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]