From owner-freebsd-questions@FreeBSD.ORG Tue Oct 21 23:58:50 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 D03C316A4B3 for ; Tue, 21 Oct 2003 23:58:50 -0700 (PDT) Received: from ahab.dictos.com (adsl-67-125-129-106.dsl.frsn02.pacbell.net [67.125.129.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0218C43FBF for ; Tue, 21 Oct 2003 23:58:50 -0700 (PDT) (envelope-from jason@ahab.dictos.com) Received: from ahab.dictos.com (localhost.dictos.com [127.0.0.1]) by ahab.dictos.com (8.12.10/8.12.10) with ESMTP id h9LIwG2F010891 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Tue, 21 Oct 2003 11:58:16 -0700 (PDT) (envelope-from jason@ahab.dictos.com) Received: from localhost (localhost [[UNIX: localhost]]) by ahab.dictos.com (8.12.10/8.12.10/Submit) id h9LIwBKh010890 for questions@freebsd.org; Tue, 21 Oct 2003 11:58:11 -0700 (PDT) (envelope-from jason) From: jason dictos To: questions@freebsd.org Date: Tue, 21 Oct 2003 11:58:11 -0700 User-Agent: KMail/1.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200310211158.11136.jason@dictos.com> Subject: Searching contents of files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jason@dictos.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Oct 2003 06:58:50 -0000 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