Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!raybed2!rayssd!tdw206!heiser From: heiser@tdw206.ed.ray.com (Bill Heiser - Unix Sys Admin) Newsgroups: comp.unix.questions Subject: finding list of new files, excluding a directory in the tree Keywords: find Message-ID: <33@tdw205.ed.ray.com> Date: 15 Jan 91 21:40:20 GMT Sender: heiser@tdw206.ed.ray.com (Bill Heiser - Unix Sys Admin @ Raytheon Company, Sudbury MA) Distribution: usa Organization: Raytheon Company, Equipment Division, Sudbury MA Lines: 28 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