I need to do a du search that only grabs certain subfolders. For example, here is the directory structure:
du -b 0 ./678 21 ./679/536/Content_Repository_PoC_-_Main 73 ./Content_Repository_PoC_-_C-CDN_JIT_Packaging/679/536 255034 ./PoC_-_C-CDN_JIT_Packaging/680/13/processed_3348d8a9-a 201034 ./PoC_-_C-CDN_JIT_Packaging/683/13/processed_cec582f5-1 208034 ./PoCx/225/processed_cec27825-1
I need it to return the sum total ONLY of the subfolders with the word "processed" in the subfolder name (so in this example, only the bottom three). I can expect a massive number of positive results.
In other words, rather than
du --exclude='processed*', I would want something like