[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

how to exclude a directory from find?



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



Reply to: