Re: [SLE] Finding files less then 31 days old?
FYI I figure it out, the following worked: find /log/ -type f -mtime +30 -name "*log.gz" -exec cp -p {} . \; ---------------------------------------------------- Jonathan Wilson System Administrator Cedar Creek Software http://www.cedarcreeksoftware.com Central Texas IT http://www.centraltexasit.com
On Wed, Jan 30, 2002 at 07:17:21PM -0600, JW wrote:
FYI I figure it out, the following worked:
find /log/ -type f -mtime +30 -name "*log.gz" -exec cp -p {} . \;
from find man page: Numeric arguments can be specified as +n for greater than n, -n for less than n, n for exactly n. So, +30 found files 30 or more days old, and you've been looking IIRC, for files less than 30 days old. -Kastus
participants (2)
-
JW
-
Konstantin (Kastus) Shchuka