O seguinte comando encontrará e removerá recursivamente diretórios vazios na árvore de diretórios atual. Ele usa xargs para fazer isso em paralelo
remove_empty_dirs.sh
find . -depth -type d -print0 | xargs -0 -n32 -P32 rmdir -v
Check out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow