17.24 Skipping Some Parts of a Tree in find (A More Selective -prune)Q:
I want to run find
across a directory tree, skipping standard
directories like /usr/spool
and /usr/local/bin
.
A A: It cannot be done directly. You can do this: A:
A:
This will not perform A: find A: The second version is worth close study, keeping the manual for find at hand for reference. It shows a great deal about how find works. A: The -prune operator simply says "do not search the current path any deeper," and then succeeds a la -print . - , |
|