TASdvlper has asked for the wisdom of the Perl Monks concerning the following question:
I was wondering if there was a quick Perl script or a command line perl utility to parse all files, from the directory you are in and all child directories, and print out all files found from largest to smallest (showing what directory they are in).
Basically, my goal here is to watch the capacity size of my O/S partition, and when it starts to get full, I would like to flag was files are the largest and delete/archive them to free up space. There are hundreds of directories to potentially go threw, so doing something by hand is not the most efficient.
Take care and thanks all.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing current and sub-directories and prints out all files found from largest size to smallest
by tachyon (Chancellor) on Apr 13, 2004 at 01:31 UTC | |
|
Re: Parsing current and sub-directories and prints out all files found from largest size to smallest
by kvale (Monsignor) on Apr 13, 2004 at 00:43 UTC | |
|
Re: Parsing current and sub-directories and prints out all files found from largest size to smallest
by tachyon (Chancellor) on Apr 13, 2004 at 01:54 UTC | |
|
Re: Parsing current and sub-directories and prints out all files found from largest size to smallest
by graff (Chancellor) on Apr 13, 2004 at 01:38 UTC | |
|
Re: Parsing current and sub-directories and prints out all files found from largest size to smallest
by pbeckingham (Parson) on Apr 13, 2004 at 00:02 UTC |