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

Re: ls -R | grep char_string



Am Montag, 30. Oktober 2000 00:39 schrieb sena:
> 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 *
> ?
>
> Regards, sena...

Yes, you're right!

Regards,
Christoph.



Reply to: