On Tue, 2007-08-14 at 10:08 -0400, Jon Lewis wrote:
>
> > find /ftp/traces -cmin +1440 -print | xargs rm -rf
>
> Adding -type f will probably solve it. That way, find will only return
> files...not directories.
>
> find /ftp/traces -cmin +1440 -type f -print | xargs rm -rf
And not strictly necessary, but to avoid errors causing xargs to do
something wonky, I'd do:
find /ftp/traces -cmin +1440 -type f -exec rm -rf {} \;
|