简体   繁体   中英

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...

I am wondering is there and way I can use linux commands to delete those files and commit it using SVN.

the case is

folder1/a.sql

folder2/a/ad.sql

like wise some 25 files

I want to do something like find -type f -iname "*.sql" and svn commit the deleted files

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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