bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Support bytesize comparison in sort


From: James Youngman
Subject: Re: Support bytesize comparison in sort
Date: Thu, 6 Apr 2006 15:18:28 +0100

On 4/6/06, Mart Somermaa <address@hidden> wrote:
> I've attached a patch that adds support for human-readable bytesize
> comparison to 'sort', i.e. numbers suffixed with K for kilo-, M for
> mega- and G for gigabytes are sorted correctly, if option '-B' is
> given in command-line arguments:

I like the idea, but I object to using up yet another single-letter
option for this (they're not renewable - the ASCII character set has a
fixed size).  I suggest that we use a long option only.

Secondly, "du" supports both --human-readable and --si.  I suggest
that we do something more or less consistent.  Thirdly, how could you
sort a file where field 1 is to be compared lexically, the second
numerically without suffixes and the third to be compared with
human-readable size extensions?

James.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]