Date: Tue, 08 Feb 2011 07:39:59 -0600 From: Martin McCormick <martin@dc.cis.okstate.edu> To: freebsd-questions@freebsd.org Subject: Re: Using Multiple -prune directives in a find command Message-ID: <201102081339.p18DdxlF002279@x.it.okstate.edu>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102081339.p18DdxlF002279>