in reply to RE: (jcwren) RE: Re: Deleting files over 2 weeks old?
in thread Deleting files over 2 weeks old?

I would have used:
find /somewhere/or/something -atime +7 -exec rm -v {} \;
Then there arn't any chars that can freak it out. If not a -exec I simply wouldn't use find for it. update: ahh... an excelent point merlyn. Perl rules!

Got Perl?

Replies are listed 'Best First'.
RE: RE: RE: (jcwren) RE: Re: Deleting files over 2 weeks old?
by merlyn (Sage) on Aug 03, 2000 at 04:50 UTC
    And that causes a separate process invocation on each file, so as a denial of service attack, I can create hundreds of thousands of empty files in /tmp, and you end up firing a separate rm for each.

    The Perl solution is still the best. Fewest processes, and no problem with special characters in the filename.

    -- Randal L. Schwartz, Perl hacker