This is how you could use find command to exclude files/file pattern.
in Solaris
# find /var ! \( -name filename -o -name filename.* \) -print
where ;
! = not equal to ( in solaris cannot use "-not")
\( = begin complex expresssion
-o = or
\) = end complex expression
In linux ;
# find /var -not \( -name filename -o -name filename.* \) -print
where ;
-not = not equal to ( ! can also be used as in solaris)
\( = begin complex expresssion
-o = or
\) = end complex expression
source : http://www.athabascau.ca/html/depts/compserv/webunit/HOWTO/find.htm