bash enquiry

Q: bash command that'll remove all empty folders in the present directory

A: find . -type d -empty -delete

find finds, . specifies the present folder, -type d specifies directories (to avoid deleting empty files), -empty specifies empty, -delete instructs to delete. duh.


Comments

Popular posts from this blog

no sound in Papers Please

pdf to png/jpg/etc

Crunchbang Changes