How to remove all .svn directories from my application directories

前端 未结 11 2593
臣服心动
臣服心动 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

    No need for pipes, xargs, exec, or anything:

    find . -name .svn -delete
    

    Edit: Just kidding, evidently -delete calls unlinkat() under the hood, so it behaves like unlink or rmdir and will refuse to operate on directories containing files.

提交回复
热议问题