Sorted directory size display in Unix

Posted by Srikanth M on Stack Overflow See other posts from Stack Overflow or by Srikanth M
Published on 2010-06-12T22:43:15Z Indexed on 2010/06/12 22:52 UTC
Read the original article Hit count: 282

Filed under:
|

How do i display directory sizes in a sorted manner in Unix while listing only innermost sub-directories? For example, I don't want to something like this -

100270480 /a/b/BP/b/bat/qc3
100270416 /a/b/BP/b/bat/qc3/logs
99020464 /a/b/BP/b/bat/qc3/logs/i
99005456 /a/b/BP/b/bat/qc5
99005408 /a/b/BP/b/bat/qc5/logs
97726832 /a/b/BP/b/bat/qc5/logs/i

I just want -

99020464 /a/b/BP/b/bat/qc3/logs/i
97726832 /a/b/BP/b/bat/qc5/logs/i

© Stack Overflow or respective owner

Related posts about unix

Related posts about unix-utils