Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Sep 2001 16:12:10 +0300
From:      Peter Pentchev <roam@ringlet.net>
To:        Ruslan Ermilov <ru@FreeBSD.ORG>
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/30309: New FIND(1) option
Message-ID:  <20010904161210.O61594@ringworld.oblivion.bg>
In-Reply-To: <200109041310.f84DA1m88374@freefall.freebsd.org>; from ru@FreeBSD.ORG on Tue, Sep 04, 2001 at 06:10:01AM -0700
References:  <200109041310.f84DA1m88374@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <ru@FreeBSD.ORG>
> To: Nils M Holm <nmh@t3x.org>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010904161210.O61594>