I need to search for all files that have certain permissions while excluding two directories under /
. These directories contain far to much information and the system chokes on them.
I've tried various combinations of -type
-path
-wholename
and -prune
and cannot seem to get it to exclude these two directories.
Currently this is what I am attempting.
find . -path './dir1/' -prune -o -path './dir2/' -prune -o -type d -perm -002 ! -perm -1000 > wwlist
Any assistance would be greatly appreciated.