如何从我的应用程序目录中删除所有.svn目录

编程入门 行业动态 更新时间:2024-10-27 06:20:54
本文介绍了如何从我的应用程序目录中删除所有.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目录

本文发布于:2023-11-11 21:25:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1579601.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   目录   目录中   svn

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!