unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: rusi <rustompmody@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: how to recursively grep
Date: Mon, 20 Aug 2012 20:23:57 -0700 (PDT)	[thread overview]
Message-ID: <a08904a0-33ce-461b-bf14-53dddc7c6c4b@qs3g2000pbb.googlegroups.com> (raw)

I am trying to figure out how to search source trees effectively for
identifiers.
For example I am searching for charset-map-path in the elisp directory
tree

I do
M-x zrgrep
charset-map-path  ;; string searched
... in files: I leave the default as *.gz
Base directory: /usr/share/emacs/23.4/lisp/


-*- mode: grep; default-directory: "/usr/share/emacs/23.4/lisp/" -*-
Grep started at Tue Aug 21 08:35:08

find . \( -path \*/SCCS -o -path \*/RCS -o -path \*/CVS -o -path \*/
MCVS -o -path \*/.svn -o -path \*/.git -o -path \*/.hg -o -path
\*/.bzr -o -path \*/_MTN -o -path \*/_darcs -o -path \*/\{arch\} \) -
prune -o \( -name .\#\* -o -name \*.o -o -name \*\~ -o -name \*.bin -o
-name \*.lbin -o -name \*.so -o -name \*.a -o -name \*.ln -o -name
\*.blg -o -name \*.bbl -o -name \*.elc -o -name \*.lof -o -name \*.glo
-o -name \*.idx -o -name \*.lot -o -name \*.fmt -o -name \*.tfm -o -
name \*.class -o -name \*.fas -o -name \*.lib -o -name \*.mem -o -name
\*.x86f -o -name \*.sparcf -o -name \*.fasl -o -name \*.ufsl -o -name
\*.fsl -o -name \*.dxl -o -name \*.pfsl -o -name \*.dfsl -o -name
\*.p64fsl -o -name \*.d64fsl -o -name \*.dx64fsl -o -name \*.lo -o -
name \*.la -o -name \*.gmo -o -name \*.mo -o -name \*.toc -o -name
\*.aux -o -name \*.cp -o -name \*.fn -o -name \*.ky -o -name \*.pg -o -
name \*.tp -o -name \*.vr -o -name \*.cps -o -name \*.fns -o -name
\*.kys -o -name \*.pgs -o -name \*.tps -o -name \*.vrs -o -name \*.pyc
-o -name \*.pyo \) -prune -o  -type f \( -name \*.gz \) -print0 |
"xargs" -0 -e zgrep -i -nH -e charset-map-path
./cus-start.el.gz:106:	     (charset-map-path installation

Grep exited abnormally with code 123 at Tue Aug 21 08:35:29

So it found the occurrence in cus-start.el and stopped abnormally.
Run it a second time and it does finds nothing.

What am I doing wrong?


             reply	other threads:[~2012-08-21  3:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-21  3:23 rusi [this message]
2012-08-21  8:14 ` how to recursively grep Peter Dyballa
     [not found] ` <mailman.7331.1345536887.855.help-gnu-emacs@gnu.org>
2012-08-21 12:47   ` rusi
2012-08-21 13:46     ` Peter Dyballa

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=a08904a0-33ce-461b-bf14-53dddc7c6c4b@qs3g2000pbb.googlegroups.com \
    --to=rustompmody@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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).