From owner-freebsd-questions@FreeBSD.ORG Wed Oct 22 00:10:58 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7F0116A4B3 for ; Wed, 22 Oct 2003 00:10:58 -0700 (PDT) Received: from ns1.tiadon.com (SMTP.tiadon.com [69.27.132.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24A9543F75 for ; Wed, 22 Oct 2003 00:10:58 -0700 (PDT) (envelope-from kdk@daleco.biz) Received: from daleco.biz ([69.27.131.77]) by ns1.tiadon.com with Microsoft SMTPSVC(6.0.3790.0); Wed, 22 Oct 2003 02:13:34 -0500 Message-ID: <3F962D2E.8080902@daleco.biz> Date: Wed, 22 Oct 2003 02:09:34 -0500 From: "Kevin D. Kinsey, DaleCo, S.P." User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: jason@dictos.com References: <200310211158.11136.jason@dictos.com> In-Reply-To: <200310211158.11136.jason@dictos.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 22 Oct 2003 07:13:35.0062 (UTC) FILETIME=[01CD2F60:01C3986C] cc: questions@freebsd.org Subject: Re: Searching contents of files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Oct 2003 07:10:59 -0000 jason dictos wrote: >Hi All, > > I've always used grep text /*/*/* to recursivly search directories for >files with the specified text string in them, however this method doesn't >always work very well (sometimes it bails out halfway through with error >"Argument list too long"). > >Is there a more effective way to search the contents of files? > >Thanks, >-Jason > > $grep -r text * Kevin Kinsey DaleCo, S.P.