From owner-freebsd-questions@FreeBSD.ORG Thu Jul 28 11:30:42 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D930106564A for ; Thu, 28 Jul 2011 11:30:42 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx1.freebsd.org (Postfix) with ESMTP id 6A5008FC14 for ; Thu, 28 Jul 2011 11:30:42 +0000 (UTC) Received: by pzk5 with SMTP id 5so12767946pzk.17 for ; Thu, 28 Jul 2011 04:30:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=jzYTpC6kzBF71Tk8UwcIYocyTDSIwDUTFFbZ3Zpy9NM=; b=UEgh8S6DTIKvLX+GDPoDZ5a0NlTOrz8yW7ITOCgtjSXkT0RAXtQnuxnPRQUr/ScM7L BSNyvOfyhyhGW67Qxrh0nuM8SKvxgExjMQ50VXtH0P2vo/mUTf7rkO0XI1F/XWnSnl3B NEi3V9haZJiehtFBv8lGCJow/U1QFU0oE7oc0= MIME-Version: 1.0 Received: by 10.68.17.40 with SMTP id l8mr66634pbd.80.1311852641907; Thu, 28 Jul 2011 04:30:41 -0700 (PDT) Received: by 10.68.46.199 with HTTP; Thu, 28 Jul 2011 04:30:41 -0700 (PDT) In-Reply-To: References: Date: Thu, 28 Jul 2011 07:30:41 -0400 Message-ID: From: "b. f." To: Gary Kline , freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Re: how do i find a file in all directories 7 to 9 days old? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2011 11:30:42 -0000 On 7/28/11, b. f. wrote: >> how can i use find or whatever to find a file, say 6 levels deep >> that is <= 9 days old? i'm looking fo something i had to jt down >> [[ASCII]]. can't remembr te file name, nor when i was when i had >> the idea flash into my mind.... > > Try something like: > > find / -type f -mtime -10d -mindepth 5 -maxdepth 7 > > See find(1) for variations. Hmm. I'm not sure owing to the difference between the body and the subject of the message, what criteria are really wanted, but for the criteria in the subject you might use something like: find / -type f -mtime -10d -mtime +6d b.