Tag: record size
-
File System Thots
A brief experiment in calculating a histogram of file sizes: $ find -type f -size -128000c -printf “%k\n” \ | sort -n \ | perl -ne ‘BEGIN{ %h=(); } {chomp $_; $h{$_}++;} END { foreach my $k (sort {$h{$a} <=> $h{$b}} keys(%h)) { print “$k $h{$k}\n”; }}’ 137 3 145 3 121 3 129 5…
