From owner-freebsd-questions@FreeBSD.ORG Tue Feb 8 13:40:00 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69A18106566B for ; Tue, 8 Feb 2011 13:40:00 +0000 (UTC) (envelope-from martin@dc.cis.okstate.edu) Received: from x.it.okstate.edu (x.it.okstate.edu [139.78.2.13]) by mx1.freebsd.org (Postfix) with ESMTP id 1E2858FC1D for ; Tue, 8 Feb 2011 13:39:59 +0000 (UTC) Received: from dc.cis.okstate.edu (localhost.cis.okstate.edu [127.0.0.1]) by x.it.okstate.edu (8.14.4/8.14.3) with ESMTP id p18DdxlF002279 for ; Tue, 8 Feb 2011 07:39:59 -0600 (CST) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <201102081339.p18DdxlF002279@x.it.okstate.edu> To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2277.1297172399.1@dc.cis.okstate.edu> Date: Tue, 08 Feb 2011 07:39:59 -0600 From: Martin McCormick Subject: Re: Using Multiple -prune directives in a find command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2011 13:40:00 -0000 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