From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: no-spam@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.help Subject: Re: Doing a file filter with grep Date: Fri, 26 Jan 2007 14:09:42 +0100 Message-ID: References: <1169764665.158410.22570@k78g2000cwa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1169817062 4037 80.91.229.12 (26 Jan 2007 13:11:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 26 Jan 2007 13:11:02 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "RealityMonster" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 26 14:10:52 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HAQqs-0005yT-IU for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jan 2007 14:10:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HAQqs-0006cv-27 for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jan 2007 08:10:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HAQpZ-0005ni-65 for help-gnu-emacs@gnu.org; Fri, 26 Jan 2007 08:09:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HAQpX-0005mQ-8C for help-gnu-emacs@gnu.org; Fri, 26 Jan 2007 08:09:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HAQpW-0005lt-CP for help-gnu-emacs@gnu.org; Fri, 26 Jan 2007 08:09:22 -0500 Original-Received: from pfepa.post.tele.dk ([195.41.46.235]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAQpV-0001UW-D6 for help-gnu-emacs@gnu.org; Fri, 26 Jan 2007 08:09:21 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepa.post.tele.dk (Postfix) with SMTP id 5AE5DFAC028; Fri, 26 Jan 2007 14:09:16 +0100 (CET) In-Reply-To: <1169764665.158410.22570@k78g2000cwa.googlegroups.com> (RealityMonster's message of "25 Jan 2007 14\:37\:45 -0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40669 Archived-At: "RealityMonster" 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