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