Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!tektronix!orca!quark!jeff From: jeff@quark.WV.TEK.COM (Jeff Beadles;X2568;61-215) Newsgroups: comp.unix.questions Subject: Re: cleanup script needed Message-ID: <3297@orca.WV.TEK.COM> Date: 11 May 89 04:56:09 GMT References: <19510@adm.BRL.MIL> Sender: nobody@orca.WV.TEK.COM Reply-To: jeff@quark.WV.TEK.COM (Jeff Beadles) Organization: Tektronix, Inc., Wilsonville, OR Lines: 19 In article <19510@adm.BRL.MIL> drears@PICA.ARMY.MIL (Dennis G. Rears (FSAC)) writes: > > /bin/find DIR -name "*.dvi" -exec rm -f {} \; > > DIR is the directory that is where you want to start from. The >*.dvi must be enclosed in quotes. You might want to use the -i option of >rm as opposed to -f depending upon application. Rather than using '-exec rm -i {} \;', why not use: '-ok rm {} \;' That way, rm is not called for files that you don't want to remove. -Jeff -- Jeff Beadles Utek Sustaining Engineering, Tektronix Inc. jeff@quark.WV.TEK.COM