[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Doing a file filter with grep
From: |
RealityMonster |
Subject: |
Re: Doing a file filter with grep |
Date: |
26 Jan 2007 08:31:02 -0800 |
User-agent: |
G2/1.0 |
Ah-ha. I checked my version, and I'm on 21.2. No wonder I didn't see
rgrep. :)
JS
On Jan 26, 6:09 am, no-s...@cua.dk (Kim F. Storm) wrote:
> "RealityMonster" <jan.sacha...@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