From owner-freebsd-questions@FreeBSD.ORG Tue May 18 02:17:22 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0892B1065674 for ; Tue, 18 May 2010 02:17:22 +0000 (UTC) (envelope-from merlyn@stonehenge.com) Received: from red.stonehenge.com (red.stonehenge.com [208.79.95.2]) by mx1.freebsd.org (Postfix) with ESMTP id E888F8FC20 for ; Tue, 18 May 2010 02:17:21 +0000 (UTC) Received: by red.stonehenge.com (Postfix, from userid 1001) id 85DA56FF5; Mon, 17 May 2010 19:17:21 -0700 (PDT) From: merlyn@stonehenge.com (Randal L. Schwartz) To: Steve Bertrand References: <4BF1F84F.1000700@ipv6canada.com> x-mayan-date: Long count = 12.19.17.6.11; tzolkin = 4 Chuen; haab = 4 Zip Date: Mon, 17 May 2010 19:17:21 -0700 In-Reply-To: <4BF1F84F.1000700@ipv6canada.com> (Steve Bertrand's message of "Mon, 17 May 2010 22:15:43 -0400") Message-ID: <86pr0uoswe.fsf@red.stonehenge.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "questions@freebsd.org" Subject: Re: Find a file with an unknown name X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 May 2010 02:17:22 -0000 >>>>> "Steve" == Steve Bertrand writes: Steve> What command string do I use to search a directory structure for a file, Steve> when my search pattern only matches content and not filename? grep -r 'pattern here' top-level-dir-here -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion