Friday, September 4, 2009

How to recursively list and delete empty directories in linux?

To list empty directories below the current dir :
find ./ -type d -empty
to delete them :
find ./ -type d -empty -delete

No comments:

Post a Comment