美文网首页
shell 删除 .svn 目录

shell 删除 .svn 目录

作者: daos | 来源:发表于2017-11-24 09:08 被阅读0次

经常使用文件 怎么去掉 .svn文件

echo 'start~'
if [ -z $1 ]; then 
echo 'please input you need del directory!';
exit;
elif [ ! -d $1 ]; then
     echo "$1 is not directory";    
else
cd $1;
    echo "change path $1";
    find . -type d -name ".svn" |xargs rm -rvf;
    find . -type f -name "Thumbs.db" |xargs rm -rvf;    
fi;

相关文章

网友评论

      本文标题:shell 删除 .svn 目录

      本文链接:https://www.haomeiwen.com/subject/salxbxtx.html