From unknown Sun Aug 17 10:19:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17610: Suggested enhancement to du command Resent-From: A Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 27 May 2014 15:40:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17610 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 17610@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.140120518126984 (code B ref -1); Tue, 27 May 2014 15:40:04 +0000 Received: (at submit) by debbugs.gnu.org; 27 May 2014 15:39:41 +0000 Received: from localhost ([127.0.0.1]:33557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WpJTV-000716-8k for submit@debbugs.gnu.org; Tue, 27 May 2014 11:39:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33781) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WpC6v-0000xY-ME for submit@debbugs.gnu.org; Tue, 27 May 2014 03:47:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WpC6g-0008UI-NK for submit@debbugs.gnu.org; Tue, 27 May 2014 03:47:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:41820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpC6g-0008UE-LA for submit@debbugs.gnu.org; Tue, 27 May 2014 03:47:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpC6Z-0004mk-5X for bug-coreutils@gnu.org; Tue, 27 May 2014 03:47:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WpC6R-0008Ra-Me for bug-coreutils@gnu.org; Tue, 27 May 2014 03:47:27 -0400 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.232]:16494 helo=cdptpa-oedge-vip.email.rr.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpC6R-0008Qy-Ho for bug-coreutils@gnu.org; Tue, 27 May 2014 03:47:19 -0400 Received: from [174.135.113.132] ([174.135.113.132:43265] helo=asterisk.saveabunny.com) by cdptpa-oedge02 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id C4/53-26160-50344835; Tue, 27 May 2014 07:47:18 +0000 Message-ID: <53844304.3090906@bak.rr.com> Date: Tue, 27 May 2014 00:47:16 -0700 From: A User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.130:25 X-Cloudmark-Score: 0 X-detected-operating-system: by eggs.gnu.org: BaiduSpider X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -5.0 (-----) X-Mailman-Approved-At: Tue, 27 May 2014 11:39:35 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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 From unknown Sun Aug 17 10:19:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17610: Suggested enhancement to du command Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 27 May 2014 16:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17610 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: A Cc: 17610@debbugs.gnu.org Received: via spool by 17610-submit@debbugs.gnu.org id=B17610.140120663829405 (code B ref 17610); Tue, 27 May 2014 16:04:01 +0000 Received: (at 17610) by debbugs.gnu.org; 27 May 2014 16:03:58 +0000 Received: from localhost ([127.0.0.1]:33564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WpJr3-0007eB-GC for submit@debbugs.gnu.org; Tue, 27 May 2014 12:03:57 -0400 Received: from mail6.vodafone.ie ([213.233.128.184]:17887) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WpJr0-0007dt-C8; Tue, 27 May 2014 12:03:55 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApYBAJy2hFNtThFt/2dsb2JhbAANTLF7kUCDEAGBJIMZAQEBAwEyAUYFCwsNCwkWDwkDAgECAUUGDQEHAQGINg2vTKUyF416WAeEQAEDoQePTIFs Received: from unknown (HELO [192.168.1.79]) ([109.78.17.109]) by mail3.vodafone.ie with ESMTP; 27 May 2014 17:03:45 +0100 Message-ID: <5384B761.7080407@draigBrady.com> Date: Tue, 27 May 2014 17:03:45 +0100 From: =?UTF-8?Q?P=C3=A1draig?= Brady User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 References: <53844304.3090906@bak.rr.com> In-Reply-To: <53844304.3090906@bak.rr.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) 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.