find mtime not the same as ls mtime?

Tom Buskey tom at buskey.name
Fri Mar 13 12:36:39 EDT 2009


On Fri, Mar 13, 2009 at 12:21 PM, Michael ODonnell <
michael.odonnell at comcast.net> wrote:

>
>
> >> find . -mtime 60
> >
> >Doesn't mtime's arg mean that many days ago?  So you're asking find
> >to mention files 60 days old, I think.   Is that what you intended?
>
> I actually should have said, "So you're asking find to mention files
> last modified 60 days ago"
>

And I don't think it will find files modified 59 days or 61 days ago.

find . -mtime +60 would find files > 60 days
find . -mtime -60 is <60 days.

FWIW, GNU find and Solaris find don't need a -print
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20090313/4eebfb7d/attachment.html 


More information about the gnhlug-discuss mailing list