how to remove specific directories recursively

How to remove .svn directories under hlfs dir recursively as follows.

weiwei@weiwei-HP-Compaq-dx6128-MT-PX478AV:~/workshop1/hlfs > find ./ -name “.svn”
./test/build/.svn
./test/.svn
./output/conf/.svn
./output/lib32/.svn
./patches/.svn
./src/include/.svn
./src/include/api/.svn
./src/snapshot/.svn
./src/snapshot/unittest/build/.svn
./src/snapshot/unittest/.svn
./src/utils/.svn
./src/clean/Mapreducer/build/.svn
./src/clean/Mapreducer/.svn
./src/clean/.svn
./src/clean/unittest/.svn
./src/icache/.svn
./src/icache/unittest/.svn
./src/backend/.svn
./src/storage/.svn
./src/cache/.svn
./src/cache/unittest/.svn
./src/clone/.svn
./src/tools/.svn
./src/tools/unittest/.svn
./src/logger/.svn
























weiwei@weiwei-HP-Compaq-dx6128-MT-PX478AV:~/workshop1/hlfs > find ./ -name “.svn” | xargs rm -rf

Leave a Reply

Your email address will not be published. Required fields are marked *