[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

du -s excluding size from directory entries?

From: Aaron Davies
Subject: du -s excluding size from directory entries?
Date: Sat, 13 Apr 2013 03:22:54 -0400

is there an easy way to `du -s' a tree and ignore the size of the directories 

if, e.g., i have one deep directory tree with a long history of modifications, 
and another directory tree created from a `cp -a' of the first, their `du -sb' 
results are likely to be somewhat different.

i can get this result with something like `find -not -type d -print0|xargs -r0 
stat -c %s|paste -sd+|bc', but a simpler solution would be nice.
Aaron Davies

reply via email to

[Prev in Thread] Current Thread [Next in Thread]