Re: [CentOS] Computer 1A question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sat, 5 Aug 2006 at 8:27am, Todd Cary wrote

Joshua Baker-LePain wrote:
On Sat, 5 Aug 2006 at 7:48am, Todd Cary wrote

This one worked like a champ:

find /home/mydir -name "*.zip" -type f -exec rm {} \;

Whereas this one produced an error:

find /home/mydir -name "*.zip" -type f -print0 | xargs -0 rm

For completeness' sake, what was the error?

The error is

rm: Too few arguments

find /home/mydir -name "*.zip" -type f -print0 | xargs -0 rm

Odd -- that WORKSFORME.

--
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux