From owner-freebsd-bugs Tue Sep 4 6:15: 5 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from ringworld.nanolink.com (discworld.nanolink.com [217.75.135.248]) by hub.freebsd.org (Postfix) with SMTP id 74C1937B403 for ; Tue, 4 Sep 2001 06:14:53 -0700 (PDT) Received: (qmail 79658 invoked by uid 1000); 4 Sep 2001 13:12:10 -0000 Date: Tue, 4 Sep 2001 16:12:10 +0300 From: Peter Pentchev To: Ruslan Ermilov Cc: freebsd-bugs@FreeBSD.org Subject: Re: bin/30309: New FIND(1) option Message-ID: <20010904161210.O61594@ringworld.oblivion.bg> Mail-Followup-To: Ruslan Ermilov , freebsd-bugs@FreeBSD.org References: <200109041310.f84DA1m88374@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200109041310.f84DA1m88374@freefall.freebsd.org>; from ru@FreeBSD.ORG on Tue, Sep 04, 2001 at 06:10:01AM -0700 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Sep 04, 2001 at 06:10:01AM -0700, Ruslan Ermilov wrote: > The following reply was made to PR bin/30309; it has been noted by GNATS. > > From: Ruslan Ermilov > To: Nils M Holm > Cc: FreeBSD-gnats-submit@FreeBSD.ORG > Subject: Re: bin/30309: New FIND(1) option > Date: Tue, 4 Sep 2001 15:59:30 +0300 > > On Tue, Sep 04, 2001 at 02:45:11PM +0200, Nils M Holm wrote: > > > > I have added the -nt (newer than) option to FIND(1) which > > allows to search for files with at least/at most a given age. > > For example, > > > > find . -nt 5h30m > > > > will list files with an age of at least 5 hours and 30 minutes. > > > > I use this option for cleaning up spool directories. > > > > Man pages are updated. > > > What do you think of just extending the -mtime functionality > so that it accepts time units in hours and minutes? Then the > above would be equivalent to: > > find . ! -mtime +5h30m I was considering such a reply; however, it would seem that the semantics of the -[acm]time option are not quite the same as those of the proposed -nt option; -[acm]time only returns true if the time of the file is *exactly* so many days old; -nt would return true if the file was *at most* so many days old. G'luck, Peter -- This sentence was in the past tense. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message