How do I find empty folders in a file hierachy with find?
find . -name ".DS_Store" -depth -type f -print
find . -name ".DS_Store" -depth -type f -print -exec rm {} \;
find . -depth -type d -empty -print
find . -depth -type d -empty -print -exec rmdir {} \;
Comments
Post a Comment