Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!psuvax1!psuvm!cmh117 From: CMH117@psuvm.psu.edu (Charles Hannum) Newsgroups: comp.sys.next Subject: Re: Clearing out old .NeXTtrash files as System Administrator Message-ID: <90100.170123CMH117@psuvm.psu.edu> Date: 10 Apr 90 21:01:23 GMT References: <8870@lindy.Stanford.EDU> Organization: Penn State University Lines: 23 Hm. There are several ways you could do this. The one that immediately comes to mind is: (Make sure the single quotes are *back*quotes!!) foreach d (`find / -name ".NeXTtrash" -type d -print`) rm -r $d/* end (Note: You'll want to redirect stderr when you do this!!) Anyway, the biggest problem with yours is that you need quotes around ".NeXTtrash/*.*", otherwise the shell will try to expand it. I doubt it would work anyway, though I haven't tried it. BTW: Why "*.*"? Sounds like MS-LOSS hangover to me. ;-) Virtually, - Charles Martin Hannum II "Klein bottle for sale ... inquire within." (That's Charles to you!) "To life immortal!" cmh117@psuvm.{bitnet,psu.edu} "No noozzzz izzz netzzzsnoozzzzz..." c9h@psuecl.{bitnet,psu.edu} "Mem'ry, all alone in the moonlight ..."