Re:Sort of handy
by michaelcampbell on Thursday May 21, 2020 @06:05AM
(#23256635)
> I admit that `du -h` comes in handy often, it is better not used for further processing.
I'd posit that once you use -h or equivalent, any further processing by a NON-HUMAN that works the way you want is a lucky side effect.
`sort -h` is only needed because `du -h` is used in the first place. I admit that `du -h` comes in handy often, it is better not used for further processing.
Your proposed approach is not only more Unix-like, but also does not require bloated implementations of `du` and `sort` capable of parsing human-readable size indications.