On Monday 12 of July 2010, Anton Aylward wrote:
auxsvr@gmail.com said the following on 07/12/2010 11:21 AM:
On Monday 12 of July 2010, Anton Aylward wrote:
What I want is something that give me a distribution - table by range or table by files below a given size - of the file sizes, not in a single directory but in a tree.
In R (package R-base) try the following:
strtoi(system("find DIR -type f -exec du {} \\; | awk '{print $1}'", intern=T)) -> fs_sizes barplot(table(cut(fs_sizes, breaks=c(0,2^(1:27)) )))
Now THAT is the kind of reply I was hoping for!
I installed R-base and ...
strtoi(system("find /usr/share -type f -exec du {} \\; | awk '{print
$1}'", intern=T)) -> fs_sizes Error: could not find function "strtoi"
Strtoi was introduced in 2.11, try as.numeric instead. Regards, Peter -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org