In a directory I want to delete certain sub-directories while excluding others. Some by owner and some by name. I have configured per man page, but no files are deleted, even those not expressly excluded . While testing If I remove all the exclude parameters then all all the files are deleted as you would expect. I get no error when I run it, just nothing happens. Would appreciate a review of the script. Names changed to protect the innocent.
find /nobackup/. -name '*' -type d ! -user 'foo' \! -user 'foo1' ! -user 'foo2' ! -user 'foo3' \! -user 'foo4' ! -name 'acmecache' -delete