Grep Guru

Paul Schmehl pschmehl_lists at tx.rr.com
Sun Jun 8 20:38:16 UTC 2008


--On June 8, 2008 1:12:56 PM -0700 Bill Campbell <freebsd at celestial.com> 
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 just grep -r string path

Paul Schmehl
If it isn't already obvious,
my opinions are my own and not
those of my employer.


More information about the freebsd-questions mailing list