Date: Sun, 8 Jun 2008 13:12:56 -0700 From: Bill Campbell <freebsd@celestial.com> To: freebsd-questions@freebsd.org Subject: Re: Grep Guru Message-ID: <20080608201256.GA28987@ayn.mi.celestial.com> In-Reply-To: <484C3CC4.7050107@webrz.net> References: <484C3CC4.7050107@webrz.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 Bill -- INTERNET: bill@celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax: (206) 232-9186 We maintain that the very foundation of our way of life is what we call free enterprise, said Cash McCall, "but when one of our citizens show enough free enterprise to pile up a little of that profit, we do our best to make him feel that he ought to be ashamed of himself." -- Cameron Hawley
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080608201256.GA28987>