[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ! -newer: no way to distinguish between "same age" and "older"
From: |
James Youngman |
Subject: |
Re: ! -newer: no way to distinguish between "same age" and "older" |
Date: |
Sat, 28 Jun 2003 12:25:40 +0100 |
User-agent: |
Mutt/1.3.28i |
On Sat, Jun 28, 2003 at 03:28:33PM +0800, Dan Jacobson wrote:
> There is find -newer and find ! -newer, but there is no way to
> distinguish between "same age" and "older", without leaving find.
True; how valuable is that functionality? Opinions from the list?
Do we need a predicate like "-older"?
> So either add new functionality, or explain how one does it in the
> manual.
>
> ok one must probably do -exec test -ot file \; or
> ! -newer file -exec test -ot file \; to not exec unnecessarily on each file.
Anlther way to do it is ...
find . -printf '%T@ %p\n'
... which is documented, at least in the manpage.