Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Feb 2011 07:39:59 -0600
From:      Martin McCormick <>
Subject:   Re: Using Multiple -prune directives in a find command 
Message-ID:  <>

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: <>