Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Feb 2011 14:56:05 -0600
From:      Martin McCormick <>
Subject:   Using Multiple -prune directives in a find command
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help
	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.

Want to link to this message? Use this URL: <>