Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!unmvax!deimos.cis.ksu.edu!uxc!uxc.cso.uiuc.edu!kailand!pwolfe From: pwolfe@kailand.kai.com Newsgroups: comp.sys.sequent Subject: Re: problem with find and NFS Message-ID: <2400047@kailand> Date: 18 May 89 01:13:00 GMT References: <2400044@kailand> Lines: 16 Nf-ID: #R:kailand:2400044:kailand:2400047:000:673 Nf-From: kailand.kai.com!pwolfe May 17 20:13:00 1989 > /* Written by pwolfe@kailand.kai.com in kailand:comp.sys.sequent */ > /* ---------- "problem with find and NFS" ---------- */ > The command: > find / -type f \( -fstype nfs -prune \) \ > -o \( -name '#*' -o -name 'core' \) \ > -atime +3 -exec ls -aFgl {} \; -exec rm -f {} \; Thanks to everyone who responded. I know now that my the problem was caused by my testing for "-type f" before pruning NFS file systems. The following works: find / -fstype nfs -prune -o -type f -atime +3 \( -name '#*' \ -o -name 'core' \) -exec ls -aFgl {} \; -exec rm -f {} \; Patrick Wolfe (pat@kai.com, {uunet,uiucuxc,sequent}!kailand!pat) System Manager, Kuck and Associates, Inc.