how do i exclude more that one directory in this case ... find ./dir1 -name '.git' -prune

How do I exclude more that one directory in this case:

find ./dir1 -name '.git' -prune

Answers


Using -o (or):

find . '(' -name a -o -name b ')' -prune -o -print

Need Your Help

testing SpringMVC controllers

validation spring-mvc

I'm unit-testing my SpringMVC (v. 2.5) controllers using code like the following:

Entity don't deleting

jpa one-to-many sql-delete

I have a simple represent of datatables grid, every datatable is a entity. Every root datatable have inner collection of entities (@OneToMany). When I'm trying to delete a root entity, everything g...