I use gmusic to order and organise my folder structure. However this means I am left with some folders that do not have any files other then normally, a image cover.
I would like to sort through all my folders & subfolders and remove the parent folder if say, the folders are under 5mb.
Here is what I can see from another answer, but this does not handle sub-folders.
du --max-depth 1 | awk -v q='"' '$1 < 30000000 && $2 != "." {sub(/^[0-9\t ]+/, "", $0); print q $0 q}'
Below we would want to remove the folder Always Ascending
and leave all over folders.
But here, we would want to remove George Harrison
& 2017 - Guardians Of The Galaxy Vol. 2 Awesome Mix Vol. 2
& Disk 1
.