Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!haven!adm!xadmx!rbj@dsys.icst.nbs.gov From: rbj@dsys.icst.nbs.gov (Root Boy Jim) Newsgroups: comp.unix.questions Subject: cleanup script needed Message-ID: <18940@adm.BRL.MIL> Date: 4 Apr 89 14:42:17 GMT Sender: news@adm.BRL.MIL Lines: 19 ? From: David Haynes ? Date: 6 Mar 89 00:22:17 GMT ? In article <9793@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) writes: ? :In article <15659@oberon.USC.EDU> rkumar@buddha.usc.edu () writes: ? :>Will rm -r *.dvi do the job? ? : ? :No, try "find . -name '*.dvi' -print | xargs rm". ? : ? Why not, "find . -type f -name '*.dvi' -exec rm {} \;" ? ? -david- As has been pointed out, the xargs version is much better. However, in our never ending search for creeping featurism, perhaps it is time to add `-rm' to the list of find options. We already have `-ls'. Catman Rshd Author of "The Daemonic Versions"