-h, --human-numeric-sort
Compare human readable numbers (e.g., 2K 1G).
An option of sortx.
Usage
sortx -h [FILE]...
sortx --human-numeric-sort [FILE]...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-h | --human-numeric-sort | none | compare human readable numbers (e.g., 2K 1G) |
Examples
Sort human-readable sizes
printf '2K\n1G\n10M\n' | sortx -hHelp in the terminal
gnux help sortx --human-numeric-sort