Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jun 2005 23:59:42 -0400 (EDT)
From:      Francisco Reyes <lists@natserv.com>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        FreeBSD Questions List <questions@freebsd.org>
Subject:   Re: Looking for files older than n number of days?
Message-ID:  <20050605235701.Q80154@zoraida.natserv.net>
In-Reply-To: <20050606022823.GI255@dan.emsphone.com>
References:  <20050605215422.O79500@zoraida.natserv.net> <20050606022823.GI255@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 5 Jun 2005, Dan Nelson wrote:

> "find . -mtime +5" , or "find . -mtime +5d", depending on whether you
> want 5 days as of the next midnight, or 5 days as of when find was
> started.

How do those flags work?
+5 = changed during last five days?
-5 = newer than five days?

I ran it on a directory and was surprised to find that both -5 AND +5 
listed a file from February. :-(



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050605235701.Q80154>