[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep(-find)? wish
From: |
Andreas Schwab |
Subject: |
Re: grep(-find)? wish |
Date: |
Sun, 08 Jul 2007 17:24:42 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) |
Paul Pogonyshev <address@hidden> writes:
> It would be great if it was possible to do `grep XXX * -l' and then
> use C-x ` to browse through matching files.
find-grep-dired is an interactive autoloaded Lisp function in `find-dired'.
(find-grep-dired DIR REGEXP)
Find files in DIR containing a regexp REGEXP and start Dired on output.
The command run (after changing into DIR) is
find . -exec grep -s -e REGEXP {} \; -ls
Thus ARG can also contain additional grep options.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- grep(-find)? wish, Paul Pogonyshev, 2007/07/08
- Re: grep(-find)? wish,
Andreas Schwab <=