[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ls -R | grep char_string



on Sun, Oct 29, 2000 at 11:39:04PM +0000, sena (sena@decoy.ath.cx) wrote:
> I heard that Christoph H. wrote this on 29/10/00:
> 
> > You are searching for a string in the name of all files in the
> > current dir and subdirs, but I think you want to search for a string 
> > _within_ all files.
> > 
> > Therefore you have to do something like that:
> > find . -exec grep -H char_string {} \; 2>/dev/null
> > 
> I think I may be missing the point here...
> 
> Wouldn't be easier to do:
> 	grep -r char_string *

What!  And spoil a good shell-tools fight?

-- 
Karsten M. Self <kmself@ix.netcom.com>     http://www.netcom.com/~kmself
 Evangelist, Opensales, Inc.                    http://www.opensales.org
  What part of "Gestalt" don't you understand?      There is no K5 cabal
   http://gestalt-system.sourceforge.net/        http://www.kuro5hin.org

Attachment: pgp09llziz9Vi.pgp
Description: PGP signature


Reply to: