This should be fairly simple, but I am not sure what i'm missing.
I'd like to recursively delete empty directories, and get an output for what's being deleted, this command works for sure, but I just can't print the actions of -excec verbosely.
while [ -n "$(find . -depth -type d -empty -exec rm -v -rf {} +)" ]; do :; done
by recursively I mean, I want to keep deleting empty folders, until there's no other empty folder.
$ tree .
.
├── empty
│ └── empty
│ └── empty
└── non-emty
└── ko
this item will only remove one empty folder in the tree
$ find . -depth -type d -empty -exec rmdir -v {} +
rmdir: removing directory, `./empty/empty'