I've been trying to establish a way to retrieve the folder size of around 5000 folders, which are contained in a folder with a total of around 15000 folders.
So for example:
Parent folder -- SubFolder -- SubFolder2 -- SubFolder3 -- SubFolder4
I only want to retrieve the folder size of SubFolder3 and SubFolder4 ... on a small scale this is of course trivial. When we're dealing with thousands it becomes a little more complex.
I had hoped that using something like unixkit-tiny with:
du -k --max-depth=1 < folderlist.txt | > foldersizes.txt
Would work, but that command sadly ignores the input - although the output works just fine.