简体   繁体   English

如何使用bash删除某些模式的文件并使用svn提交

[英]How to Delete files of some pattern using bash and commit using svn

I have a lot of .sql files in multiple folders.. it will be a hectic work to mention the path of it individually... 我在多个文件夹中有很多.sql文件..单独提到它的路径将是一件繁琐的工作...

I am wondering is there and way I can use linux commands to delete those files and commit it using SVN. 我想知道是否可以使用linux命令删除这些文件并使用SVN提交。

the case is 情况是

folder1/a.sql 文件夹1 / a.sql

folder2/a/ad.sql 文件夹2 /一个/ ad.sql

like wise some 25 files 像明智的25个文件

I want to do something like find -type f -iname "*.sql" and svn commit the deleted files 我想做类似find -type f -iname "*.sql"svn commit删除的文件

  1. find . -name "*.sql" -exec svn delete '{}' \\;
  2. svn commit -m "My Log Message"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM