delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/09/14/15:35:05

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: <003101befee7$d327e460$656aadcf@qsicorp.com>
Reply-To: "Michael K. Elwood" <mkelwood AT qsicorp DOT com>
From: "Michael K. Elwood" <mkelwood AT qsicorp DOT com>
To: "cygwin cygwin" <cygwin AT sourceware DOT cygnus DOT com>
References: <37DE848D DOT A55EE21A AT roving DOT com>
Subject: Re: recursive grep
Date: Tue, 14 Sep 1999 13:32:04 -0600
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300

> 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....

The UNIXy way to do this is

find | xargs grep <pattern>

xargs is the totally cool glue that makes this construct work. Check the man
page for xargs. You can also constrain the files fed to grep using standard
'find' syntax.

Hope this helps.

Best regards,

MKE




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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