bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Excluding future-dated files in 'find' on Cygwin


From: Andreas Metzler
Subject: Re: Excluding future-dated files in 'find' on Cygwin
Date: Fri, 20 Oct 2023 18:31:16 +0200

On 2023-10-20 Backwoods BC <completely.and.totally.trash@gmail.com> wrote:
> On Fri, Oct 13, 2023 at 7:55 AM Andreas Metzler <gnu@bebt.de> wrote:
> > On 2023-10-13 Backwoods BC <completely.and.totally.trash@gmail.com> wrote:
> > [...]
[...]
> TFM says:
> -atime n
> File was last accessed less than, more than or exactly n*24 hours ago.
> When find figures out how many 24-hour periods ago the file was last
> accessed, any fractional part is ignored, so to match -atime +1, a
> file has to have been accessed at least two days ago.

> I interpret this to mean that -mtime +0 -mtimt -1 means greater than
> zero hours ago AND less than 47:59:59 ago -- which finds nothing.

Hello,

This interpretation disregards "any fractional part is ignored."

-mtime +0 means that *after* *throwing* *away* *any* *fractional* *part*
(less than a 24:00:00) the time difference is still greater than 0 day,
i.e.  modified at least 24 hours ago.

Same for -mtime -1, which therefore means modified less than 24 hours ago.

Therefore, no overlap, no matches.

cu Andreas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]