From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Robert Mecklenburg Newsgroups: gmane.emacs.windows,gmane.emacs.help Subject: Re: isearch-regexp-in-all-matching-files-in-tree? Date: Tue, 15 Oct 2002 13:14:43 -0600 Sender: help-emacs-windows-admin@gnu.org Message-ID: <15788.26915.355000.68427@gargle.gargle.HOWL> References: <44364250@toto.iv> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1034709318 21998 80.91.224.249 (15 Oct 2002 19:15:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 15 Oct 2002 19:15:18 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, help-emacs-windows@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 181X9w-0005ic-00 for ; Tue, 15 Oct 2002 21:15:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 181XA9-00042x-00; Tue, 15 Oct 2002 15:15:29 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 181X9W-0003E0-00 for help-emacs-windows@gnu.org; Tue, 15 Oct 2002 15:14:50 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 181X9U-0003DI-00 for help-emacs-windows@gnu.org; Tue, 15 Oct 2002 15:14:49 -0400 Original-Received: from smtp.cimsoft.com ([204.246.133.198] helo=wolf.cimsoft.com) by monty-python.gnu.org with esmtp (Exim 4.10) id 181X9R-000352-00; Tue, 15 Oct 2002 15:14:45 -0400 Original-Received: from OSAKA.cimsoft.com (osaka.cimsoft.com [10.1.1.158]) by wolf.cimsoft.com (8.11.6/8.11.6) with ESMTP id g9FJEhF06718; Tue, 15 Oct 2002 13:14:43 -0600 Original-To: "Thomas L Roche" In-Reply-To: <44364250@toto.iv> X-Mailer: VM 7.07 under Emacs 21.2.1 Errors-To: help-emacs-windows-admin@gnu.org X-BeenThere: help-emacs-windows@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion forum for users of the GNU Emacs port to Windows List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.windows:998 gmane.emacs.help:2647 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2647 TLR> Use case: I'm in a dired buffer in GNU Emacs 21.1.1 on w2k. I TLR> want to _interactively_ search for the string 'GenericAction' TLR> (and replace with 'ActionClass') in all files with names matching TLR> '*.java' anywhere in the directory tree below the current TLR> directory. TLR> TLR> How can I do this? M-x find-dired # Invoke find-dired . # on the current directory -name '*.java' # insert the *.java name pattern -exec grep -q GenericAction {} \; # edit the grep command When the find command finishes mark all files as in any dired buffer. Finally, use A (dired-do-search) to search them interactively. Hope this helps, -- Robert