Re: [Coreutils] Sort enhancement request: 1 < 1K < 1M < 1G etc.

2010-10-09 Thread Philip Ganchev
2010/10/8 Pádraig Brady : > On 08/10/10 17:15, Philip Ganchev wrote: >> On a related note, couldn't all GNU programs (such as "du" and "ls") >> be made to print (and read?) numbers and dates formatted according to >> the locale setting, including thousands-separators, etc? That would >> avoid havin

Re: [Coreutils] Sort enhancement request: 1 < 1K < 1M < 1G etc.

2010-10-08 Thread Pádraig Brady
On 08/10/10 17:15, Philip Ganchev wrote: > On a related note, couldn't all GNU programs (such as "du" and "ls") > be made to print (and read?) numbers and dates formatted according to > the locale setting, including thousands-separators, etc? That would > avoid having a special option for every pro

Re: [Coreutils] Sort enhancement request: 1 < 1K < 1M < 1G etc.

2010-10-08 Thread Philip Ganchev
On Fri, Oct 8, 2010 at 10:05 AM, Eric Blake wrote: > This feature already exists.  From the 7.5 NEWS: > >  sort accepts a new option, --human-numeric-sort (-h): sort numbers >  while honoring human readable suffixes like KiB and MB etc. > > The latest stable version is 8.5, with 8.6 due shortly.  

Re: [Coreutils] Sort enhancement request: 1 < 1K < 1M < 1G etc.

2010-10-08 Thread Pádraig Brady
On 08/10/10 04:16, Philip Ganchev wrote: > It would be useful if sort could understand numeric abbreviations, for > example 1k = 1,000 and 1K = 1024. This need arises for me very often > when I want a sorted list of human-readable file sizes like the output > of "du -h". Currently, to use "sort" yo

Re: [Coreutils] Sort enhancement request: 1 < 1K < 1M < 1G etc.

2010-10-08 Thread Eric Blake
On 10/07/2010 09:16 PM, Philip Ganchev wrote: It would be useful if sort could understand numeric abbreviations, for example 1k = 1,000 and 1K = 1024. This need arises for me very often when I want a sorted list of human-readable file sizes like the output of "du -h". Currently, to use "sort" you

[Coreutils] Sort enhancement request: 1 < 1K < 1M < 1G etc.

2010-10-08 Thread Philip Ganchev
It would be useful if sort could understand numeric abbreviations, for example 1k = 1,000 and 1K = 1024. This need arises for me very often when I want a sorted list of human-readable file sizes like the output of "du -h". Currently, to use "sort" you have to resort to raw numbers, which are hard t