neptuna has asked for the wisdom of the Perl Monks concerning the following question:
----------------use File::Find; find (\&wanted_user, "$dir"); sub wanted_user { %sum = (); next unless (-d $_); ($user,$size) = (stat($_))[4,7] or die "can't stat: $!\n"; push ( @{$sum{$user}}, $size ); } foreach $user (sort keys %sum) { print "$user: @{$sum{$user}}\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: help with FS usage script using a data struct
by webfiend (Vicar) on Jun 04, 2002 at 19:07 UTC | |
|
Re: help with FS usage script using a data struct
by Abigail-II (Bishop) on Jun 05, 2002 at 09:41 UTC | |
|
Re: help with FS usage script using a data struct
by Aristotle (Chancellor) on Jun 05, 2002 at 08:19 UTC | |
|
Re: help with FS usage script using a data struct
by neptuna (Acolyte) on Aug 30, 2002 at 17:03 UTC |