[nylug-talk] logrotate question
Kristian Erik Hermansen
kristian.hermansen at gmail.com
Sat Feb 2 17:02:02 EST 2008
On Feb 2, 2008 2:00 PM, Kristian Erik Hermansen
<kristian.hermansen at gmail.com> wrote:
> Delete all files created more than 5 days ago?
> $ find /path/to/logs -ctime +5 -type f -exec rm -f {} \;
You can add -name or -iname to restrict the finding to just the gz files btw...
--
Kristian Erik Hermansen
"Know something about everything and everything about something."
More information about the nylug-talk
mailing list