Hello, On Fri, 04 Oct 2019, David T-G wrote:
I know that this isn't SuSE-specific, but everyone here loves a puzzle :-) I have a collection of directories with varying contents; most but not all have files in them, and many of interest have subdirs in them. Here's a sample set: [..] I want to get a du total for all of the DIR-* subdirs, grouped by parent, without throwing any errors. The simple version obviously doesn't work: [..] What I'd really like is to be able to [ -d $D/DIR-* ] but of course that doesn't work because there can be multiple matches. Got any better ideas?
$ find bla/ -type d -exec du -hkc {} + HTH, -dnh -- New scheduler deployed on friday was buggy, we learn not to deploy larger changes on fridays anymore ;) -- Adrian Schröter in opensuse-buildservice -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org