How can I get `find` to ignore .svn directories?

后端 未结 20 1517
迷失自我
迷失自我 2020-12-04 05:05

I often use the find command to search through source code, delete files, whatever. Annoyingly, because Subversion stores duplicates of each file in its .

20条回答
  •  不知归路
    2020-12-04 05:34

    I use find with the -not -path options. I have not had good luck with prune.

    find .  -name "*.groovy" -not -path "./target/*" -print
    

    will find the groovy files not in the target directory path.

提交回复
热议问题