From owner-freebsd-questions@FreeBSD.ORG Sun Jun 8 20:12:58 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0F6F1065677 for ; Sun, 8 Jun 2008 20:12:58 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from ayn.mi.celestial.com (hayek.celestial.com [192.136.111.12]) by mx1.freebsd.org (Postfix) with ESMTP id 48B848FC0A for ; Sun, 8 Jun 2008 20:12:57 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from localhost (localhost [127.0.0.1]) by ayn.mi.celestial.com (Postfix) with ESMTP id BF2AF68610B21; Sun, 8 Jun 2008 13:12:56 -0700 (PDT) X-Virus-Scanned: amavisd-new at mi.celestial.com Received: from ayn.mi.celestial.com ([127.0.0.1]) by localhost (ayn.mi.celestial.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id HPwi+NZ336r5; Sun, 8 Jun 2008 13:12:56 -0700 (PDT) Received: by ayn.mi.celestial.com (Postfix, from userid 203) id A370D6800E985; Sun, 8 Jun 2008 13:12:56 -0700 (PDT) Date: Sun, 8 Jun 2008 13:12:56 -0700 From: Bill Campbell To: freebsd-questions@freebsd.org Message-ID: <20080608201256.GA28987@ayn.mi.celestial.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <484C3CC4.7050107@webrz.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <484C3CC4.7050107@webrz.net> User-Agent: Mutt/1.5.11 OpenPKG/2.5 Subject: Re: Grep Guru X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@celestial.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2008 20:12:58 -0000 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