Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 Subject: Re: recursive grep To: earnie_boyd AT yahoo DOT com, Dan Richards , cygwin cygwin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 wrote: > --- Dan Richards 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 > > Newbies, please visit > > > (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