[vox-tech] Perl help requested

Peter Jay Salzman vox-tech@lists.lugod.org
Tue, 10 Feb 2004 10:18:28 -0800


On Tue 10 Feb 04,  9:56 AM, Richard Crawford <rscrawford@mossroot.com> said:
> I'm trying to write a Perl application that will go through a directory
> and give the amount of space used by each directory, including each
> subdirectory.  So, for example, if myDirectory1 has three files totalling
> 150K and two subdirectories (mySubDirectoryA, with 20K of files, and
> mySubDirectoryB with 50K of files), I'd like to see output like this:
> 
> DIRECTORY         SIZE
> ======================
> myDirectory1      220K
> 
> I'm stuck at the first line. Any suggestions?
 
is this a programming exercise or do you just want something to give you
the numbers?

pete

-- 
Make everything as simple as possible, but no simpler.  -- Albert Einstein
GPG Instructions: http://www.dirac.org/linux/gpg
GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D