Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: delete directories older than 7 days
by toolic (Bishop) on May 20, 2009 at 12:24 UTC
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: delete directories older than 7 days
by JavaFan (Canon) on May 20, 2009 at 12:08 UTC
    What is your problem? You don't know how to delete directories? Cannot find the directories? Don't know how to test for age? Don't know what "older than" means (created? changed?)? Don't know how to use an editor? Don't know what a script is? Cannot program in Perl? Cannot program at all?
      Whatever the OP problem is, it certainly isn't the ability to drive a web browser, nor is it the ability to type. The ability to ask daft question doesn't appear to be impaired either.

      Having said that, there would appear to be some sort of problem using Super Search...

      There, I feel better now I've got that off my chest :-D

      A user level that continues to overstate my experience :-))
Re: delete directories older than 7 days
by lakshmananindia (Chaplain) on May 20, 2009 at 12:14 UTC

    Use the find command if you are in unix

    --Lakshmanan G.

    The great pleasure in my life is doing what people say you cannot do.


Re: delete directories older than 7 days
by Lawliet (Curate) on May 21, 2009 at 01:09 UTC

    To summarize the other answers (and include my own opinion): "No."

    I don't mind occasionally having to reinvent a wheel; I don't even mind using someone's reinvented wheel occasionally. But it helps a lot if it is symmetric, contains no fewer than ten sides, and has the axle centered. I do tire of trapezoidal wheels with offset axles. --Joseph Newcomer

Re: delete directories older than 7 days
by Anonymous Monk on May 20, 2009 at 14:05 UTC
    how to use rmtree to delete folders based on their age