[GH-ISSUE #12] Readme: sort -h can sort human-readable numbers #6

Closed
opened 2026-06-08 11:25:15 +03:00 by zhus · 1 comment
Owner

Originally created by @Emerentius on GitHub (Apr 21, 2018).
Original GitHub issue: https://github.com/bootandy/dust/issues/12

Originally assigned to: @bootandy on GitHub.

The following part in the README.md isn't quite correct

[du -b] for when you have a bunch and need to sort the output numerically, and you’re obligated to either further pass it into something like awk to turn bytes into the appropriate human-friendly unit like mega or gigabytes, or you just do some rough math in your head and use the ordering to sanity check.

Given that sort has a -h flag for sorting human-readable numbers correctly, that part is a bit misleading.

Edit: I just noticed that sort -h is already given as an alternative at the bottom. Changed comment text.

Originally created by @Emerentius on GitHub (Apr 21, 2018). Original GitHub issue: https://github.com/bootandy/dust/issues/12 Originally assigned to: @bootandy on GitHub. The following part in the README.md isn't quite correct > [du -b] for when you have a bunch and need to sort the output numerically, and you’re obligated to either further pass it into something like awk to turn bytes into the appropriate human-friendly unit like mega or gigabytes, or you just do some rough math in your head and use the ordering to sanity check. Given that sort has a `-h` flag for sorting human-readable numbers correctly, that part is a bit misleading. Edit: I just noticed that sort -h is already given as an alternative at the bottom. Changed comment text.
zhus closed this issue 2026-06-08 11:25:15 +03:00
Author
Owner

@bootandy commented on GitHub (Apr 27, 2018):

README updated to make this clearer.

<!-- gh-comment-id:384946182 --> @bootandy commented on GitHub (Apr 27, 2018): README updated to make this clearer.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#6