GNU bug report logs - #20936
sort: add summary line option

Previous Next

Package: coreutils;

Reported by: Linda Walsh <coreutils <at> tlinx.org>

Date: Tue, 30 Jun 2015 07:29:02 UTC

Severity: wishlist

Tags: wontfix

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Linda Walsh <coreutils <at> tlinx.org>
To: auerswal <at> unix-ag.uni-kl.de, 20936 <at> debbugs.gnu.org
Subject: bug#20936: suggestion for a 'wart-ish' extension off of 'sort'
Date: Tue, 30 Jun 2015 08:57:46 -0700
On 6/30/2015 3:51 AM, Erik Auerswald wrote:
>
>> Ishtar:/tmp/dutest> du -shc * |sort -h|tail
>> 1.5M    sperl,v
>> 3.6M    total
>> 5.0M    total
>> Ishtar:/tmp/dutest> du -sh * |hsort -s|tail
>> 1.5M    sperl,v
>> 3.6M    total
>> ----    -----
>> 5.1M    TOTAL
>>
>> But more a more obvious problem is 'du -shc' seems to be coming up with
>> the wrong number -- i.e. 1.5+3.6 = 5.1, not 5.0.
> That are probably rounding errors avoided by du, that hsort cannot avoid
> anymore.
---
1) I think you're right, but 2) it still looks odd to see 1.5+3.6=5.0 
and not 5.1






This bug report was last modified 6 years and 213 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.