ssh - Find (by name) and delete a directory and its contents -
i have been able create following command, works extent:
find . -type d -name "thumbs" -delete
however, deleted empty folders. if found folder called 'thumbs' wasn't empty, didn't delete it.
how can find folders called 'thumbs' , delete them, including contents?
found answer! use following (with caution):
find . -type d -name "thumbs" -exec rm -rf {} \;
Comments
Post a Comment