all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: sunway <sunwayforever@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: how to tell find-grep-dired skip binary files?
Date: Tue, 03 Jun 2008 15:51:00 +0200	[thread overview]
Message-ID: <87abi2zkxn.fsf@thievol.homelinux.org> (raw)
In-Reply-To: <272a04dd-ffe3-4152-be3d-3fd832c85a30@z16g2000prn.googlegroups.com> (sunway's message of "Tue, 3 Jun 2008 04:15:41 -0700 (PDT)")

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	other threads:[~2008-06-03 13:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-03 10:15 how to tell find-grep-dired skip binary files? sunway
2008-06-03 10:32 ` weber
2008-06-03 11:15   ` sunway
2008-06-03 13:51     ` Thierry Volpiatto [this message]
2008-06-03 18:33     ` Eli Zaretskii

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=87abi2zkxn.fsf@thievol.homelinux.org \
    --to=thierry.volpiatto@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=sunwayforever@gmail.com \
    /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.