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

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

Re: Doing a file filter with grep


From: Kim F. Storm
Subject: Re: Doing a file filter with grep
Date: Fri, 26 Jan 2007 14:09:42 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux)

"RealityMonster" <jan.sacharuk@gmail.com> writes:

> So I've been getting find and grep working on my WinXP system with
> emacs. I can finally properly search for files and search in files for
> the things that I want. I'd like, however, to put a file filter on it,
> so I can search just through .h files or .cpp files.
>
> On the command line, I'd do something like this:
>
> grep -r Pattern `find . -name *.cpp`

Try M-x rgrep

 (available only in Emacs 22).

>
> Any help here? Does emacs already do what I want somewhere else? M-x
> apropos find is understandably enormous.

So why didn't you try this :-)
   C-h a grep RET 


-- 
Kim F. Storm  http://www.cua.dk





reply via email to

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