Juhapekka Tolvanen wrote: > See disussions in bug #563118 . It is obvioous and evident, that in > order to solve that bug some new utility is needed. Let's call it > "sortdu". At least it is good working title.
I'm rejecting the idea of adding a sortdu to moreutils. The point of moreutils is to gather new tools in the spirit of the original unix tools. Writing a new program because sort and du -h don't mix w/o loss of accuracy is not in that spirit. There's nothing really wrong with the shell pipelines shown in #563118, aside from them being a bit complex. That complexity could be reduced if du had a way to format its output like this: 412 412K . Then the pipeline becomes just du --format="%i %h %f" | sort -n | awk '{print $2, $3}' -- see shy jo
signature.asc
Description: Digital signature