2014-10-06 12:52:07 |
Hans Ginzel |
description |
Please add an option, let say -N, which would modify numerical sorting by accepting (and correctly sorting) size units (k,kB,kiB,M,...,G,...) even when separated by space (common, non-breakable, thin, ..., http://en.wikipedia.org/wiki/Whitespace_character). |
Please add more white space symbols between number and unit in sort -h. See http://en.wikipedia.org/wiki/Whitespace_character for Unicode (utf-8) encoding in locale.
For example
echo -e "1 Gb\n1 MB" |sort -h
should return
1 MB
1 Gb
where between '1' and 'MB' is Unicode's U+202F narrow no-break space (HTML:  ). |
|