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

asked Nov 3, 2014 by harryxiyou (5,740 points)

1 Answer

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

answered Nov 3, 2014 by harryxiyou (5,740 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...