From owner-freebsd-questions@FreeBSD.ORG Tue May 18 02:45:03 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 8CDB81065670 for ; Tue, 18 May 2010 02:45:03 +0000 (UTC) (envelope-from roy@ghettodexter.com) Received: from mail.bitnexus.com (mail.bitnexus.com [64.90.180.75]) by mx1.freebsd.org (Postfix) with SMTP id 370C98FC15 for ; Tue, 18 May 2010 02:45:02 +0000 (UTC) Received: (qmail 7663 invoked from network); 17 May 2010 22:18:22 -0400 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=ghettodexter.com; b=RC7MvG2ufKksY6/eKMGRaYNtM/NTGy6wSklselo1MyW25c9vFrLIOSGochtGilye+Yih0JmPAArLeBnkCBQIWYm95/+d1a6PJCukuLMiZSnHP7bktDkR/F4xzcY7h76d ; Received: from mail.bitnexus.com (HELO ?192.168.1.210?) (roy@64.90.180.75) by mail.bitnexus.com with SMTP; 17 May 2010 22:18:22 -0400 Message-ID: <4BF1F8EC.5070900@ghettodexter.com> Date: Mon, 17 May 2010 22:18:20 -0400 From: Roy Hubbard User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Steve Bertrand References: <4BF1F84F.1000700@ipv6canada.com> In-Reply-To: <4BF1F84F.1000700@ipv6canada.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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:45:03 -0000 Steve Bertrand wrote: > I want to find a file that was recently created. > > The content within the file is known, so I can grep for that. The > directory structure that contains the file is also known. The filename > is not known. > > What command string do I use to search a directory structure for a file, > when my search pattern only matches content and not filename? > > Steve > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Maybe this will work. From the top of the directory structure: grep -R {expression} .