how do i exclude more that one directory in this case ... find ./dir1 -name '.git' -prune
Ho开发者_JAVA百科w do I exclude more that one directory in this case:
find ./dir1 -name '.git' -prune
Using -o
(or):
find . '(' -name a -o -name b ')' -prune -o -print
精彩评论