Sorted directory size display in Unix
- by Srikanth M
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