du -dirs

der.hans PLUGd@LuftHans.com
Wed, 21 Jun 2000 22:16:21 -0700 (MST)


moin, moin,

anyone know of a way to get du to give me the cumulative size of the files
in a dir tree, but to not include the dir sizes? Or how to get the
cumulative size of the dirs and not include files?

I've got a tarball that opens to a known size on one box and another size
on another. The 1st box has 1024 dirs and the 2nd 4096 dirs. I presume
this is the difference, but it's 10MB on a 100MB tarball, so I'd like to
be certain I'm not losing 10MB of stuff :). I'm also going to be comparing
dus of the filesystem on both boxen as part of my backup mechanism and I'd
like to be able to automagically verify that everything's ok.

Granted, I could write a script that would do this, but that would require
that I think as well as put together 10 or 20 lines of code. Why should I
go to soooo much effort if there's already a tool to do this? ;-)

Actually, it would require me to figure out how to get du to provide the
desired functionality and get it added, but if the gnu toolset already has
something to do this, that's what I should use.

cioa,

der.hans
-- 
#  der.hans@LuftHans.com   home.pages.de/~lufthans/   www.Opnix.com
#  Like the maid, I don't do (M$)Windows. - der.hans