Command Line Kung Fu: Episode #45: Removing Empty Directories
Command Line Kung Fu: Episode #45: Removing Empty Directories
I needed to remove empty directories and managed to run across this. If you are on a recent Unix (MacOS X included) or Linux box, apparently it’s as easy as:
$ find . -type d -empty -delete
Perfect. Exactly what I needed.
Dec 08, 2009