Average and maximum size of directories
        Posted  
        
            by Mircea
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Mircea
        
        
        
        Published on 2010-03-10T18:59:56Z
        Indexed on 
            2010/03/12
            1:17 UTC
        
        
        Read the original article
        Hit count: 360
        
I have a directory and a bunch of sub-directories like this: - directory1 (sub-dir1, sub-dir2, sub-dir3, sub-dir4, sub-dir5...........and so on, hundreds of them...)
How do I find out what is average size of the sub-directories? And how do I find what is the maximum size of the sub-directories?
All using Unix commands...
Thanks.
© Stack Overflow or respective owner