From owner-freebsd-questions@FreeBSD.ORG Thu Jul 28 11:25:32 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 1391F1065670 for ; Thu, 28 Jul 2011 11:25:32 +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 E71118FC16 for ; Thu, 28 Jul 2011 11:25:31 +0000 (UTC) Received: by pzk5 with SMTP id 5so12746788pzk.17 for ; Thu, 28 Jul 2011 04:25:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; bh=pFZNRw9vSdB+w6FAUyJVRabmcdU966v0HBIbyhhk9sM=; b=D5nvCjFd4iw74bf2CP3c/pP3MMUfo9NdiYfUbTVSm0vXxdMhbuse+1HIlDtehJmdfn BLTFlCUO/+dL3b9HC1XPUr1vPlxrMfWNziPW2WbL40nOeRsysdxfbs46fPCiomnSeo9T qOR7jcSpXilUGUifZdtyTGygQH3JOey/+fDN0= MIME-Version: 1.0 Received: by 10.68.0.39 with SMTP id 7mr34487pbb.214.1311852331337; Thu, 28 Jul 2011 04:25:31 -0700 (PDT) Received: by 10.68.46.199 with HTTP; Thu, 28 Jul 2011 04:25:31 -0700 (PDT) Date: Thu, 28 Jul 2011 07:25:31 -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:25:32 -0000 > 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. b.