[comp.unix.questions] finding list of new files, excluding a directory in the tree

heiser@tdw206.ed.ray.com (Bill Heiser - Unix Sys Admin) (01/16/91)

I have a really stupid question :-)

I am trying to build a find command to find all files in some directory
structure that are newer than some file I use as a "timestamp."  I 
want to exclude a particular directory with a name that starts with
"1991".  I tried the following find command (along with many many many others),
and have yet to come up with one that excludes the directory I want to
exclude and still comes up wtih the "new files."

find . -depth ! -name ./users/1991\* -type d -prune -o -newer /backup/timestamps
/somefile.done -print

It seems to me that this should work -- but it doesn't exclude the 1991*
directory.

Anyone out there have a single-line find command (without building a temp
file or using grep or anything external to find) that will do this?

Thanks in advance,
Bill


-- 
Work: heiser@tdw201.ed.ray.com
      {decuac,necntc,uunet}!rayssd!tdw201.ed.ray.com!heiser
Home: bill@unixland.uucp, uunet!world!unixland!bill   *PUBLIC ACCESS USENET*
 508-655-3848 12/24  508-655-8723 12/24/96-HST   508-651-8733 12/24/96-PEP/V32