Date: Tue, 4 Sep 2001 06:30:01 -0700 (PDT) From: Ruslan Ermilov <ru@FreeBSD.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/30309: New FIND(1) option Message-ID: <200109041330.f84DU1e90643@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/30309; it has been noted by GNATS. From: Ruslan Ermilov <ru@FreeBSD.org> To: bug-followup@FreeBSD.org Cc: Subject: Re: bin/30309: New FIND(1) option Date: Tue, 4 Sep 2001 16:19:59 +0300 On Tue, Sep 04, 2001 at 04:12:10PM +0300, Peter Pentchev wrote: > 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. > Don't you see the plus (``+'') sign above? : All primaries which take a numeric argument allow the number : to be preceded by a plus sign (``+'') or a minus sign (``-''). : A preceding plus sign means ``more than n'', a preceding minus : sign means ``less than n'' and neither means ``exactly n''. -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age 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?200109041330.f84DU1e90643>