Recursively delete empty directories
Before I used a Ruby script to achieve the same.
Now I found this:
find . -type d -empty -delete
Much cleaner and simpler. Saves me a lot of time.
Written by Andreas Böhrnsen
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#