help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to tell find-grep-dired skip binary files?


From: Thierry Volpiatto
Subject: Re: how to tell find-grep-dired skip binary files?
Date: Tue, 03 Jun 2008 15:51:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

sunway <sunwayforever@gmail.com> writes:

> On Jun 3, 6:32 pm, weber <hug...@gmail.com> wrote:
>> On Jun 3, 7:15 am, sunway <sunwayfore...@gmail.com> wrote:
>>
>> > when using find-grep-dired in dired, I only care about plain text
>> > files like *.c, *.cpp,etc, How to tell find-grep-dired skip files I
>> > don't care,like binary files and .svn/*..
>>
>> From the man
>>
>>        -I     Process  a  binary file as if it did not contain
>> matching data; this is equivalent to the --binary-files=without-match
>> option.
>>
>> so just add -I to the find-grep-options variable and you're good to
>> go.
>>
>> HTH,
>> Hugo
>
> that helps, but how to ignore files like  .svn/* also?
>
Alternatively, you can use TraverseDirectory that work with python as
backend:
Thats faster than grep/find and fully configurable.(just add .svn or
what you want to the conf file)

http://www.emacswiki.org/cgi-bin/wiki/TraverseDirectory 

-- 
A + Thierry
Pub key: http://pgp.mit.edu




reply via email to

[Prev in Thread] Current Thread [Next in Thread]