On Fri, Nov 24, 2006 at 08:41:40AM +0100, Heiko Schlittermann wrote:
> Johann Spies <jspies@???> (Fr 24 Nov 2006 07:39:31 CET):
> > On Thu, Nov 23, 2006 at 08:56:02PM +0100, Marten Lehmann wrote:
> > > Hello,
> > >
> > > > See http://www.schlittermann.de/doc/grey.html
> > >
> > > the script is really nice. The only drawback is that it takes very, very
> > > long to walk through all the directories and remove entries not accessed
> > > for a certain time to remove old hosts that haven't tried the delivery
> > > again. We had more than 300.000 IP-addresses within one day.
> >
> > I have not tried this setup yet - I will probably within the next few
> > weeks - but wouldn something like
> >
> > find . -mtime +60 | xargs rm
> >
> > remove the files older than 60 days?
>
> Almost, better is:
>
> find . -type f -mtime +60 | xargs rm
Better still:
find . -type f -mtime +60 -print0 | xargs -0 rm
Just on the offchance that you've got some strange filenames.
--
Brett Parker