cleanup script needed
WU SHI-KUEI
wu at spot.Colorado.EDU
Tue Mar 7 02:01:41 AEST 1989
In article <80 at torsqnt.UUCP> david at torsqnt.UUCP (David Haynes) writes:
>In article <9793 at smoke.BRL.MIL> gwyn at brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) writes:
>:In article <15659 at oberon.USC.EDU> rkumar at 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 {} \;" ?
The 'xargs' version will be many times faster than the 'exec' version since the
latter invokes 'rm' for every file found while 'xargs' will invoke 'rm' only
once for every 470 characters in the command list (including spaces).
More information about the Comp.unix.questions
mailing list