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.
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
Post a Comment