[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using grep in dired mode: best method for ascii files
From: |
Patrick Drechsler |
Subject: |
Re: using grep in dired mode: best method for ascii files |
Date: |
Mon, 16 Aug 2004 21:04:54 +0200 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) |
oliver wrote on 16 Aug 2004 07:14:12 MET:
> "Patrick Drechsler" <patrick.drechsler@gmx.net> wrote in message
> m3u0v8dq74.fsf@pdrechsler.fqdn.th-h.de">news:m3u0v8dq74.fsf@pdrechsler.fqdn.th-h.de...
>>
>> can somebody give my a pointer in the manual on searching a
>> folder (including subfolders) for a regexp? The subfolder
>> include many binary files. I don't want to search the later.
>>
>> I've tried `grep-find', 'A' and `find-grep-dired`. Also
>> marking the folders of interest in dired-mode. Often enough I
>> end up with a grep error `123'.
>>
>> What I'm looking for is a command to find a regexp within my
>> files containing (ascii-)code.
[...]
> you could use find-dired to execute something like:
>
> find . \( -name <file-patten> -exec grep -q
> <in-file-search-pattern> {} \; \) -exec ls -lGd {} \;
>
> find-grep-dired unfortunaly goes through all readable files it
> finds on its way. of course you could make your own extended
> "find-in-files-grep-dired", were you asked the user for a third
> string representing the file-pattern and put something like
> above together.
Hi Oliver,
thanks for the example and the explanation! I'll give it a try
and see how far I get with my lisp knowledge ;-)
Cheers
Patrick
--
There are two major products that come out of Berkeley: LSD and UNIX.
We don't believe this to be a coincidence.
Jeremy S. Anderson