If we're doing shell script, we might as well make it robust. Your solution is probably the simplest way, and will work most of the time, but will blow up if there're too many directories to fit on one command line. xargs solves this nicely:
find . -type d -name '_vti_cnf' | xargs rm -rfOr, if there are funky characters in the directory names, a while read loop is what I would use:
find . -type d -name '_vti_cnf' | while read dir ; do rm -rf "$dir" ; doneIn reply to Re: Re: Recursively blowing away directories of a certain name
by revdiablo
in thread Recursively blowing away directories of a certain name
by aarestad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |