I'm trying to exclude the directory /zones in my find command. I don't have GNU find available, just the native Solaris find.
I tried something like this:
find / -type d ! -name zones
The problem is that with this exclude I also lose sub-directories like /etc/zones.
Is there a way to specify the complete directory name like:
find / -type d ! -name ^\/zones
I already tested lots of approaches but I can't include the / in front of the string.
find / ! -name '*zones'?