all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Mecklenburg <mecklen@cimsoft.com>
Cc: help-gnu-emacs@gnu.org, help-emacs-windows@gnu.org
Subject: Re: isearch-regexp-in-all-matching-files-in-tree?
Date: Tue, 15 Oct 2002 13:14:43 -0600	[thread overview]
Message-ID: <15788.26915.355000.68427@gargle.gargle.HOWL> (raw)
In-Reply-To: <44364250@toto.iv>

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 <ret>			# 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





       reply	other threads:[~2002-10-15 19:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <44364250@toto.iv>
2002-10-15 19:14 ` Robert Mecklenburg [this message]
     [not found] <mailman.1034621906.27584.help-gnu-emacs@gnu.org>
2002-10-14 22:50 ` isearch-regexp-in-all-matching-files-in-tree? Kevin Rodgers
2002-10-14 18:55 isearch-regexp-in-all-matching-files-in-tree? Thomas L Roche
  -- strict thread matches above, loose matches on Subject: below --
2002-10-14 18:18 isearch-regexp-in-all-matching-files-in-tree? Thomas L Roche

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15788.26915.355000.68427@gargle.gargle.HOWL \
    --to=mecklen@cimsoft.com \
    --cc=help-emacs-windows@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.