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

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jun 05), Francisco Reyes said:
> Looking at the man page for find I see several ways to look for files
> exactly N days old or newer than N days, but did not see a flag for
> files older than N number of days.. like files older than 90 days...
> Did I miss it?

"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.

-- 
	Dan Nelson
	dnelson@allantgroup.com



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