delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/09/14/20:51:46

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: <37DEED87.47F98EE1@ctam.com.au>
Date: Wed, 15 Sep 1999 10:51:20 +1000
From: Brendan Simon <bsimon AT ctam DOT com DOT au>
Reply-To: bsimon AT ctam DOT com DOT au
Organization: CTAM Pty Ltd
X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.0.36 i586)
X-Accept-Language: en
MIME-Version: 1.0
To: CygWin32 <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: recursive grep
References: <006701befee8$71f51ef0$effcf584 AT rtp-cbjones DOT corpeast DOT baynetworks DOT com>

Christopher Jones wrote:

> > The UNIXy way to do this is
> >
> > find | xargs grep <pattern>
> >
>
> or find -exec grep <pattern> \{\} \; -print
>
> proving once again there is more than one way to do just about anything.

I use
grep pattern `find`
or
grep pattern `find . -name "*.c"`

This sometimes can fill the command line up though for large file matches.

Brendan Simon.


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