March 6

Remove empty directories using *nix find

find -depth -type d -empty -exec rmdir {} ;

The -depth parameter tells find to start from the innermost directory first and work its way to the top level.

Tags: ,
Copyright 2021. All rights reserved.

Posted March 6, 2011 by admin in category "Top of my head

Leave a Reply

Your email address will not be published. Required fields are marked *