With find the -type f option specifies a plain file, -type d is a directory.
Something like this will work for empty directories:
find . -type d -name _vti_cnf -exec /bin/rmdir {} \;
If the directories aren't empty this will work to recursively delete the directory and everything below it:
find . -type d -name _vti_cnf -exec /bin/rm -r {} \;
Standard disclaimers apply- A simple typo will trash your whole filesystem right out from under you in a hurry. Make a backup and do some safety checks to test whatever method you settle on before actually adding the commands that will delete anything.
|