GNU bug report logs - #17610
Suggested enhancement to du command

Previous Next

Package: coreutils;

Reported by: A <publicface <at> bak.rr.com>

Date: Tue, 27 May 2014 15:40:04 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17610 in the body.
You can then email your comments to 17610 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#17610; Package coreutils. (Tue, 27 May 2014 15:40:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to A <publicface <at> bak.rr.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 27 May 2014 15:40:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: A <publicface <at> bak.rr.com>
To: bug-coreutils <at> gnu.org
Subject: Suggested enhancement to du command
Date: Tue, 27 May 2014 00:47:16 -0700
I would like to request an enhancement to the du utility.

Being as how (I would assume) most people use du to determine what is 
taking up all the disk space, I would like to request that du provide 
output limited to a range of sizes.  For example I want to only see 
files greater than or equal to 20MB.  This is the greatly preferred 
option.  Failing this, then I would like to see either
    a) output formatted so as to be able to feed it to the "sort" 
utility and get a list of files sorted by size or
    b) an option in du to sort files by size.

Currently attempting to sort by size results in a mish-mash of pseudo 
sorted files.  Just so you know, I always use the -h option so as to get 
human readable format (which for the record is a fantastic option and I 
would love to see it as the default).

Thank you for your consideration.



- Andrew




Information forwarded to bug-coreutils <at> gnu.org:
bug#17610; Package coreutils. (Tue, 27 May 2014 16:04:01 GMT) Full text and rfc822 format available.

Message #8 received at 17610 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: A <publicface <at> bak.rr.com>
Cc: 17610 <at> debbugs.gnu.org
Subject: Re: bug#17610: Suggested enhancement to du command
Date: Tue, 27 May 2014 17:03:45 +0100
tag 17610 notabug
close 17610
stop

On 05/27/2014 08:47 AM, A wrote:
> I would like to request an enhancement to the du utility.
> 
> Being as how (I would assume) most people use du to determine what is taking up all the disk space, I would like to request that du provide output limited to a range of sizes.  For example I want to only see files greater than or equal to 20MB.  This is the greatly preferred option.

v8.21 (2013-02-14) supports this with:

  du -t 20MB

>  Failing this, then I would like to see either
>     a) output formatted so as to be able to feed it to the "sort" utility and get a list of files sorted by size or

v7.5 (2009-08-20) support this with:

  du -h | sort -h

v8.21 also has numfmt which supports this is a more accurate/general manner:

  du -B1 | sort -k1,1n | numfmt --to=iec-i

>     b) an option in du to sort files by size.

Definitely not. sorting is complicated and it's
best to avoid munging multiple functions to a single unit.

> Currently attempting to sort by size results in a mish-mash of pseudo sorted files.  Just so you know, I always use the -h option so as to get human readable format (which for the record is a fantastic option and I would love to see it as the default).

thanks,
Pádraig.





Added tag(s) notabug. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Tue, 27 May 2014 16:04:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 17610 <at> debbugs.gnu.org and A <publicface <at> bak.rr.com> Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Tue, 27 May 2014 16:04:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 25 Jun 2014 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 55 days ago.

Previous Next


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