delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/15/13:39:06

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Andrew Schulman <schulman DOT andrew AT epa DOT gov>
Subject: Re: bash, find | xargs grep
Date: Wed, 15 Mar 2006 13:34:11 -0500
Lines: 6
Message-ID: <pdng12t4tlmgmgc5grbrm4og0muf9jt34v@4ax.com>
References: <20060314222840 DOT 4377 DOT qmail AT web35003 DOT mail DOT mud DOT yahoo DOT com>
Mime-Version: 1.0
X-Archive: encrypt
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

> I've been doing "find | xargs grep" types of things

Bob, I don't know the source of your trouble, but as a workaround consider
running grep -r instead of find | xargs grep.  In many cases it's equivalent
or almost as good, and it probably will avoid all of the forking that's
causing trouble for you.  A.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019