GNU bug report logs - #61884
add an option to du that allows to control which file types are counted

Previous Next

Package: coreutils;

Reported by: Christoph Anton Mitterer <calestyo <at> scientia.org>

Date: Wed, 1 Mar 2023 03:20:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


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

From: Christoph Anton Mitterer <calestyo <at> scientia.org>
To: Pádraig Brady <P <at> draigBrady.com>, 61884 <at> debbugs.gnu.org
Subject: Re: bug#61884: add an option to du that allows to control which
 file types are counted
Date: Thu, 02 Mar 2023 17:54:09 +0100
On Thu, 2023-03-02 at 16:01 +0000, Pádraig Brady wrote:
> There are many possible filtering options,
> which are probably best left to `find` (as per your example).
> This was also mentioned previously at:
> https://lists.gnu.org/archive/html/coreutils/2013-04/msg00043.html


Sure, but the problem with all these is that one doesn't get usable
per-operand totals - only one big overall total.

If you take e.g.:


find dir1 dir2 fileA -not -type d -print0 | du -hsc --files0-from=-

(without the tail), one get's one line per (non-directory) file below
dir1 and dir2 as well as one for fileA .. plus the grand overall total,
whereas it would be nice to have totals for:
- dir1
- dir2
- fielA
- overall

Cheers,
Chris.




This bug report was last modified 2 years and 101 days ago.

Previous Next


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