Spam:****, Re: [NTLUG:Discuss] rm doesn't recurse

David Camm dcamm at advwebsys.com
Thu May 6 09:46:35 CDT 2004


try this:

find . -name '*.zip' -exec rm -f {} \;

the backslash-semicolon is required.

david camm
advanced web systems

Bobby Wrenn wrote:
> Paul Drew wrote:
> 
>> I would try a find and then run an xargs and rm the results.
>>
>> find . -name "*.zip" | xargs rm {}
>>
>>
> Did the job and then returned:
> rm: cannot remove `{}': No such file or directory
> But it worked.
> 
> Thanks
> Bobby
> 
> 
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
> 





More information about the Discuss mailing list