If the disk in question is being backed up on a regular basis, and if the backup system involved creates complete logs or maintains a database, it would be neatest if you could make use of that sort of resource, since it's there anyway, and is complete, accurate and up-to-date.

If there are no backups (ooooh, living on the edge, are we?), or if you don't have easy access to backup logs or database, look for the the unix "find" utility -- it will do everything you want, once you learn the command line usage. (There is a windows port of the tool, if that's what you need.) You could write the equivalent tool in Perl, using the File::Find module, but it'll be more work to set it up, it'll run slower, and it'll consume more system resources while it's running.

(Update: tachyon has just disproved the part about it being more work to set up -- or at least, the point is moot, since he's done the work; but it's still true that File::Find requires more run-time and memory than doing the equivalent job with "find".)

For a relevant discussion of using "find" with Perl (which can be easy, fast and effective), check out this snippet (shameless plug): An alternative to File::Find


In reply to Re: Parsing current and sub-directories and prints out all files found from largest size to smallest by graff
in thread Parsing current and sub-directories and prints out all files found from largest size to smallest by TASdvlper

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.