From owner-freebsd-questions@FreeBSD.ORG Tue May 18 12:17:56 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 D3A53106564A for ; Tue, 18 May 2010 12:17:56 +0000 (UTC) (envelope-from douglas.j.schmidt@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8EE7C8FC0C for ; Tue, 18 May 2010 12:17:56 +0000 (UTC) Received: by gyh20 with SMTP id 20so3267757gyh.13 for ; Tue, 18 May 2010 05:17:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=1pv8wraLgprVSidyS4yIThJzwFZan/jGzDFGl78xV28=; b=IIyT+ONA7M1JtZbtpawk+Y3On5WlBGMy82NyBN7jMYhGGEVswqCT1yeXifbL3s3nZg cWauiHqR/j+TZEg4y/Ws62lkt7ph48uCUcK2HjEVS3ZOmnHCm4ay3sWf5Q82V7H8lqAr EBGmH/x6Mmda5CISIBEvhbah0pox053w8zBzU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=m11VmM4AhT2oGgc3eEjbTStO7418VvF+R/SoCneDr42RuDPt80WA47bP/qqdEZLNBg DTUOstFaDHa2AGutFIvjBoy8uBr6inSKW3YkLPSEn/UIQmitZ+kUpcg7loNtjwhknFl2 97giwWrWOcN5xXsqXoiHQR6FosT9XKonkZhQ8= MIME-Version: 1.0 Received: by 10.150.119.42 with SMTP id r42mr7642064ybc.235.1274185075669; Tue, 18 May 2010 05:17:55 -0700 (PDT) Received: by 10.150.212.7 with HTTP; Tue, 18 May 2010 05:17:55 -0700 (PDT) In-Reply-To: References: <4BF1F84F.1000700@ipv6canada.com> Date: Tue, 18 May 2010 08:17:55 -0400 Message-ID: From: doug schmidt To: Eitan Adler Content-Type: text/plain; charset=ISO-8859-1 Cc: "questions@freebsd.org" , Steve Bertrand 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 12:17:56 -0000 On Tue, May 18, 2010 at 5:37 AM, Eitan Adler wrote: >> I want to find a file that was recently created. > > find -newerct '1 hour ago' -print you can also find all files newer than file.txt. find -newer file.txt -print > >> 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. > > grep -R "content" > _______________________________________________ > 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" >