all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "oliver" <oliver_baumann@nospam.justemail.net>
Subject: Re: using grep in dired mode: best method for ascii files
Date: Mon, 16 Aug 2004 16:14:12 +1000	[thread overview]
Message-ID: <cfpj9u$1cqj$1@otis.netspace.net.au> (raw)
In-Reply-To: m3u0v8dq74.fsf@pdrechsler.fqdn.th-h.de


"Patrick Drechsler" <patrick.drechsler@gmx.net> wrote in message 
news:m3u0v8dq74.fsf@pdrechsler.fqdn.th-h.de...
> Hi,
>
> 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.
>
> Thankful for pointers,
>
> Patrick
> -- 
> Snoopy (on being house-trained with a rolled-up newspaper):
> It does tend however to give one a rather distorted view of the press!

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.

cheers, oliver 

  reply	other threads:[~2004-08-16  6:14 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 [this message]
2004-08-16 19:04   ` Patrick Drechsler

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='cfpj9u$1cqj$1@otis.netspace.net.au' \
    --to=oliver_baumann@nospam.justemail.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.
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.