[NTLUG:Discuss] rm doesn't recurse
Kenneth Loafman
ken at lt.com
Fri May 7 11:47:00 CDT 2004
Steve Baker wrote:
> Kenneth Loafman wrote:
>
>> I like the rm -r method myself. Since its recursive, it does not
>> expand all the arguments to the command line. I have run across cases
>> where expanding the find blows the command line length out of the water.
>
>
> No! There *isn't* an "rm -r" method. If you say:
Yes, my mistake for going too fast.
The method to avoid spawning thousands of rm's is to use find as:
find . -type d -exec rm *.zip \;
with the appropriate quoting, which I can never remember.
...Ken
More information about the Discuss
mailing list