From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rusi Newsgroups: gmane.emacs.help Subject: how to recursively grep Date: Mon, 20 Aug 2012 20:23:57 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1345519817 4073 80.91.229.3 (21 Aug 2012 03:30:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2012 03:30:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 21 05:30:18 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T3fAU-00067k-Bg for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Aug 2012 05:30:14 +0200 Original-Received: from localhost ([::1]:42609 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3fAS-00012o-NG for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Aug 2012 23:30:12 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!qs3g2000pbb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: 116.74.131.35 Original-X-Trace: posting.google.com 1345519539 21741 127.0.0.1 (21 Aug 2012 03:25:39 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 21 Aug 2012 03:25:39 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: qs3g2000pbb.googlegroups.com; posting-host=116.74.131.35; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20100101 Firefox/14.0.1,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:194074 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86440 Archived-At: 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?