[vox-tech] Perl help requested

Micah J. Cowan vox-tech@lists.lugod.org
Tue, 10 Feb 2004 15:21:01 -0800


On Tue, Feb 10, 2004 at 09:56:36AM -0800, Richard Crawford wrote:
> 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:

If this isn't just an excercise in programming, or an improvement over
the existing tool, have you looked into df(1)?

-- 
Micah J. Cowan
micah@cowan.name