this can be handled just by one single command: find . -type d -empty -exec rmdir {} \; easy he. Written by Knilluz on 12 October 2011 at 16:51