本文介绍了如何从我的应用程序目录中删除所有.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目录
发布评论