From owner-freebsd-questions@FreeBSD.ORG Mon Feb 7 20:56:06 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 616EB1065675 for ; Mon, 7 Feb 2011 20:56:06 +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 16ED18FC14 for ; Mon, 7 Feb 2011 20:56:05 +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 p17Ku5Da097335 for ; Mon, 7 Feb 2011 14:56:05 -0600 (CST) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <201102072056.p17Ku5Da097335@x.it.okstate.edu> To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <97333.1297112165.1@dc.cis.okstate.edu> Date: Mon, 07 Feb 2011 14:56:05 -0600 From: Martin McCormick Subject: 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: Mon, 07 Feb 2011 20:56:06 -0000 Can one use the -prune directive multiple times in a find command to specify a list of directories not to descend? It would be like find . -name "*" -prune dir1 -prune dir2 -print or whatever you wanted find to do, but that does not work or I wouldn't be asking. Find appears to get confused and thinks dir1 is a command. Thanks for your help.