[CentOS] find with exclude directory

Brian Miller centos at fullnote.com
Sun May 11 17:04:45 UTC 2014


On Sun, 2014-05-11 at 12:33 -0400, Tim Dunphy wrote:
> Hey all,
> 
>  I'm trying to do a find of all files with the phrase 'varnish' in the
> name, but want to exclude a user home directory called
> /usr/local/digitalplatform.

find / -path /usr/local/digitalplatform -prune -name \*varnish\* doesn't
work?





More information about the CentOS mailing list