bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#61884: add an option to du that allows to control which file types a


From: Christoph Anton Mitterer
Subject: 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
User-agent: Evolution 3.46.4-1

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]