delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-ID: | <19990914180841.5983.rocketmail@web116.yahoomail.com> |
Date: | Tue, 14 Sep 1999 11:08:41 -0700 (PDT) |
From: | CW <crwfl AT yahoo DOT com> |
Subject: | Re: recursive grep |
To: | earnie_boyd AT yahoo DOT com, Dan Richards <rodan AT roving DOT com>, |
cygwin cygwin <cygwin AT sourceware DOT cygnus DOT com> | |
MIME-Version: | 1.0 |
Here is a simple rgrep I use, never tried it with bash however. #!/bin/ksh for FILE in `find . -name $2 -print` do if [ `grep -c $1 $FILE` -ne 0 ] then echo $FILE grep -i -n $1 $FILE fi done Carson --- Earnie Boyd <earnie_boyd AT yahoo DOT com> wrote: > --- Dan Richards <rodan AT roving DOT com> wrote: > > > > I'm a new cygwin user, so far I'm pretty happy, > but... > > > > Is there something I'm missing, or does this > version of grep not support > > a recursive option? I've never used a grep that > couldn't do this.... > > And I've never seen one that does. I know there > exists a package called rgrep > that will do what you want but you'll have to find > the source and build it. > === > Earnie Boyd <mailto:earnie_boyd AT yahoo DOT com> > > Newbies, please visit > <http://www.freeyellow.com/members5/gw32/index.html> > > (If you respond to the list, then please don't cc > me) > __________________________________________________ > Do You Yahoo!? > Bid and sell for free at http://auctions.yahoo.com > > -- > Want to unsubscribe from this list? > Send a message to > cygwin-unsubscribe AT sourceware DOT cygnus DOT com > > __________________________________________________ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |