How to remove .svn directories under hlfs dir recursively as follows.
如何递归删除hlfs目录下的.svn目录,如下所示。
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>查找./ -name“ .svn”
./test/build/.svn
./test/.svn
./output/conf/.svn
./output/lib32/.svn
./patches/.svn
./src/include/.svn
./src/include/api/.svn
./src/快照/.svn
./src/快照/unittest/build/.svn
./src/快照/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/ 缓存 /.svn
./src/cache/unittest/.svn
./src/clone/.svn
./src/ 工具 /.svn
./src/tools/unittest/.svn
./src/logger/.svn
weiwei@weiwei-HP-Compaq-dx6128-MT-PX478AV:~/workshop1/hlfs > find ./ -name “.svn” | xargs rm -rf
weiwei @ weiwei-HP-Compaq-dx6128-MT-PX478AV:〜/ workshop1 / hlfs>查找./ -name“ .svn” | xargs rm -rf
翻译自: https://www.systutorials.com/how-to-remove-specific-directories-recursively/