如何从我的应用程序目录中删除所有.svn目录 [英] How to remove all .svn directories from my application directories
本文介绍了如何从我的应用程序目录中删除所有.svn目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的应用程序中具有导出工具的任务之一是清除应用程序目录树中的所有.svn
目录.我正在Linux外壳中寻找一个递归命令,该命令将遍历整个树并删除.svn
文件.
One of the missions of an export tool I have in my application, is to clean all .svn
directories from my application directory tree. I am looking for a recursive command in the Linux shell that will traverse the entire tree and delete the .svn
files.
我不使用导出,因为此脚本将用于与SVN不相关的其他文件/目录名称.我尝试了类似的方法:
I am not using export, as this script will be used for some other file/directory names which are not related to SVN. I tried something like:
find . -name .svn | rm -fr
那没用...
推荐答案
尝试一下:
find . -name .svn -exec rm -rf '{}' \;
在运行这样的命令之前,我经常喜欢先运行此命令:
Before running a command like that, I often like to run this first:
find . -name .svn -exec ls '{}' \;
这篇关于如何从我的应用程序目录中删除所有.svn目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文