Reputation: 3466
How can I advice find not to descend in specific (multiple) directories? I would like to invoke find directly, so no features of bash can be used.
find
bash
Upvotes: 0
Views: 25
Reputation: 124
How about find . -name "file.tofind" ! -path "dir/to/exclude/*"?
find . -name "file.tofind" ! -path "dir/to/exclude/*"
Upvotes: 1