On 04/03/2009, Lauri Nikkinen <lauri.nikki...@iki.fi> wrote:
> And I would like to write to script which prints into STDOUT (=cmd screen)
> all the directories in this folder (C:\Perl\) and and their size. So the out
> put should look like this:
>
> Directory bin: size xxx megabytes
> Directory cpan: size xxx megabytes
> Directory eg: size xxx megabytes
> Directory etc: size xxx megabytes
> ...and so on
You should check out "du" from gnu coreutils. I'm a unix man, but a
friend of mine has them installed on his Windows machine, and they
work fine. This looks like a useful link:
http://gnuwin32.sourceforge.net/packages/coreutils.htm

> Even better, if I could print out all the subdirectories also.
This is its default. If you want to restrict it to a particular depth,
take a look at the --max-depth option.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to