Hi Stephen,
Here's a find command we use to clean up our scratch system of files that have not been accessed for more than 14 days. Certain directories are exempt from the cleanup, including .snapshot.
/sbin/find /scratch ( -type d -name staff -prune ) -o ( -type d -name export -prune ) -o ( -type d -name .snapshot -prune ) -o -atime +14 -exec rm -f {} ;
Steve Bailey
On Nov 14, 2003, at 8:05 AM, Darragh, Stephen J wrote:
Hi,
I am having trouble using unix find and excluding anything in .snapshot.
I can't see any flag for exclude
Suggestions???
Thanks Stephen Darragh