Grep Guru

Simon Jolle sjolle urandomdev at gmail.com
Sun Jun 8 20:23:26 UTC 2008


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080608/cbb66188/signature.pgp


More information about the freebsd-questions mailing list