FYI I figure it out, the following worked:
find /log/ -type f -mtime +30 -name "*log.gz" -exec cp -p {} . \;
Sorry to bother everyone.
At 06:57 PM 1/30/2002 -0600, you wrote:
>Hey,
>
>I'm trying to get a list of files 30 day sold or younger. I thought the following
>would to the trick:
>
>find . -type f -mtime 30 -ls
>
>But that only prints files that are exactly 30 days old. How do I do that "and
>younger" part?
>Less then 31 days would be a suitable substitute too.
>
>Thanks
>
>----------------------------------------------------
>Jonathan Wilson
>System Administrator
>
>Cedar Creek Software http://www.cedarcreeksoftware.com
>Central Texas IT http://www.centraltexasit.com
>
>
>
>_______________________________________________
>Redhat-list mailing list
>[EMAIL PROTECTED]
>https://listman.redhat.com/mailman/listinfo/redhat-list
----------------------------------------------------
Jonathan Wilson
System Administrator
Cedar Creek Software http://www.cedarcreeksoftware.com
Central Texas IT http://www.centraltexasit.com
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list