Date: Fri, 14 Sep 2001 17:18:56 +0300 From: Ruslan Ermilov <ru@FreeBSD.org> To: Bruce Evans <bde@zeta.org.au> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/find find.1 find.h function.c Message-ID: <20010914171856.A39969@sunbay.com> In-Reply-To: <20010914232817.C19138-100000@delplex.bde.org>; from bde@zeta.org.au on Fri, Sep 14, 2001 at 11:33:18PM %2B1000 References: <20010914155552.A27691@sunbay.com> <20010914232817.C19138-100000@delplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 14, 2001 at 11:33:18PM +1000, Bruce Evans wrote:
> On Fri, 14 Sep 2001, Ruslan Ermilov wrote:
>
> > On Fri, Sep 14, 2001 at 05:47:13AM -0700, Ruslan Ermilov wrote:
> > > Bloat find(1) even more, and introduce the concept
> > > of time units to be used with -[acm]time primaries.
> > >
> > > Based on patch from Nils M Holm <nmh@t3x.org>.
> > >
> > > PR: bin/29165, bin/30309
> > >
> > I called this bloat, because a similar feature was already
> > available with ``-newerXt time''. I wonder, shouldn't we
> > remove this piece of GNU code now?
>
> What is better about the new way? Better units? -newerXY is more
> general.
>
Not quite, and I was confused here.
``-newer Xt time'' compares the file's X time against the point
in time specified as an argument. The new syntax of -[acm]time
allows to match the files that are _older_ or _newer_ than the
specified amount of time units since the find(1) was run.
For example, ``find / -mtime -1h30m'' will match files that were
modified during the last hour and a half. And of course this
does not replace the functionality of ``-newerX[acm] file''.
To summarize:
-newerX[acm] file compares against <file>
-newerXt time compares against <time>
-[acm]time n[smhdw] compares against NOW{+-}<n>
Cheers,
--
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 cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010914171856.A39969>
