unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Patrick Drechsler <patrick.drechsler@gmx.net>
Subject: Re: using grep in dired mode: best method for ascii files
Date: Mon, 16 Aug 2004 21:04:54 +0200	[thread overview]
Message-ID: <m3fz6mvr8p.fsf@pdrechsler.fqdn.th-h.de> (raw)
In-Reply-To: cfpj9u$1cqj$1@otis.netspace.net.au


oliver wrote on 16 Aug 2004 07:14:12 MET:

> "Patrick Drechsler" <patrick.drechsler@gmx.net> wrote in message 
> 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

      reply	other threads:[~2004-08-16 19:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-12 21:03 using grep in dired mode: best method for ascii files Patrick Drechsler
2004-08-16  6:14 ` oliver
2004-08-16 19:04   ` Patrick Drechsler [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m3fz6mvr8p.fsf@pdrechsler.fqdn.th-h.de \
    --to=patrick.drechsler@gmx.net \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).