Subject: how to exclude a directory from find?

From: Carlos Carvalho <[email-masked]>
Date: Wed, 11 Sep 96 11:26 EST

I'm trying to search for unused files, but I want to exclude a
directory from the search. I tried

cd /scratch && find . -atime +7 -path ./var -prune -o -print

but it doesn't work. Any clues?

Carlos

---

From: Casper BodenCummins <[email-masked]>
Date: Thu, 12 Sep 1996 13:04:06 +0100

>but it doesn't work. Any clues?

Move the -atime condition to just before the -print (then have a think).

Casper Boden-Cummins.