in reply to Who bloated my server?
use File::Finder; my %sizes; my @START = "."; $sizes{$_->[0]} += $_->[1] for File::Finder->type('f')->mtime('-3')->collect(sub { [(stat)[4, 7]] } +, @START); for (sort { $sizes{$b} <=> $sizes{$a} } keys %sizes) { printf "%20s %.2f MB\n", getpwuid($_) || "($_)", $sizes{$_}/1e6; }
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Who bloated my server?
by neniro (Priest) on Jul 21, 2004 at 16:19 UTC | |
by merlyn (Sage) on Jul 21, 2004 at 16:50 UTC |