Possible Duplicate:
How to remove all empty directories in a subtree?
I create directories very often, scattered over my home directory, and I find it very hard to locate and delete them.
I want any alias/function/script to find/locate and delete all empty directories in my home directory.
WORK=$(mktemp -d)orcd $(mktemp -d). Of course don't put important files that you need to preserve in those directories. But most likely your system is already setup to automagically make those files disappear after a while. – emory Aug 25 '12 at 23:35/z/directory on start-up and do all my temporary work there. – Richard Oct 21 '13 at 20:23