How to remove all .svn directories from my application directories

前端 未结 11 2583
臣服心动
臣服心动 2020-12-04 04:26

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 recursiv

11条回答
  •  自闭症患者
    2020-12-04 05:09

    You almost had it. If you want to pass the output of a command as parameters to another one, you'll need to use xargs. Adding -print0 makes sure the script can handle paths with whitespace:

    find . -type d -name .svn -print0|xargs -0 rm -rf
    

提交回复
热议问题