Re: [Perl-unix-users] URGENT - file types and sizes total in a dir tree

2002-01-17 Thread Jim Angstadt
--- [EMAIL PROTECTED] wrote: > Take a look at File::Find. Hi Craig. Here is a little more to get you started. It is certainly not complete but may help. [Tested on win98se and build 521.] Mind the line wrap. # -- # starting with a given dir, # subtotal all files by extension, # f

Re: [Perl-unix-users] URGENT - file types and sizes total in a dir tree

2002-01-17 Thread Chuck . Hirstius
Craig, Take a look at File::Find. it allows you to have a subroutine called for each file encountered in a directory tree. You can then build a hash of file extensions and increment the size in there. the documentation is quite good, play with it for a little bit and you should have your scri

[Perl-unix-users] URGENT - file types and sizes total in a dir tree

2002-01-17 Thread Craig Sharp
This question will be used for win32 file tree but will also apply to unix so I am posting here. We have had a request to generate a report for total space usage by file type (extension) within a directory tree. Eg: Start at the top of the tree, look at all the file types by extension and