in reply to Re: finding top 10 largest files
in thread finding top 10 largest files
return if $s < $min && @z == 10;
File::Find::find( sub { return unless -f; @z = sort @z, sprintf( "%32d:", -s ) . $File::Find::name; shift @z if @z > 10; }, $dir ); print "$_\n" for @z;
jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.
|
---|