cleanup script needed

Jeff Beadles;X2568;61-215 jeff at quark.WV.TEK.COM
Thu May 11 14:56:09 AEST 1989


In article <19510 at adm.BRL.MIL> drears at 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 at quark.WV.TEK.COM



More information about the Comp.unix.questions mailing list