Using Multiple -prune directives in a find command
Martin McCormick
martin at dc.cis.okstate.edu
Tue Feb 8 13:40:00 UTC 2011
Mike Clarke writes:
> find . -type d -name dir1 -prune -o -name dir2 -prune -o -name \*
>
> ... should list all files except those in dir1 or dir2
It certainly does. Thank you. I was off on enough wrong syntax
tracks that it probably would have taken a very long time to
figure it out. I found tons of find examples but very little use
of -prune in those examples.
Martin McCormick
More information about the freebsd-questions
mailing list