On 06/08/2008 10:12 PM, Bill Campbell wrote:
> On Sun, Jun 08, 2008, Jos Chrispijn wrote:
>> I tried to make a grep script on find a string in all files on path ./ 
>> and down. It does anything exept searching in files and reporting them.
>> Is there a Grep Guru who can hint me out? Thanks,
> 
> I expect you need something like:
> 
> find . -type f -print0 | xargs -0 grep pattern

Or install the GNU grep (from the man)

-R, -r, --recursive
Read all  files  under  each  directory,  recursively;  this  is
equivalent to the -d recurse option.

> Bill

cheers
Simon


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to