[Linux-disciples] delete a whole lot of files
Karl Sokol
revkarl at gmail.com
Wed Feb 7 13:26:48 EST 2007
church at ubuntu:~$ sudo find /home/church -iname '*.jpg' -print0 |xargs -i0 rm
'{}'
Password:
xargs: argument line too long
church at ubuntu:~$
On 2/7/07, Adam Rosi-Kessel <adam at rosi-kessel.org> wrote:
>
> On 2/7/2007 1:19 PM, Stephen R Laniel wrote:
> > On Wed, Feb 07, 2007 at 01:16:22PM -0500, Adam Rosi-Kessel wrote:
> >> I think you would need
> >>
> >> find /home/church -iname '*.jpg' -print0 -exec '{}' rm \;
> >
> > Sorry, what I meant to write was
> >
> > find /home/church -iname '*.jpg' -print0 |xargs -0 rm
>
> Oh, right. You don't want to do both -exec and -print (or -print0).
>
> I would suggest the slight modification:
>
> find /home/church -iname '*.jpg' -print0 |xargs -i0 rm '{}'
>
> although in this case I don't think it would make any difference.
> _______________________________________________
> Linux-disciples mailing list
> Linux-disciples at lists.bostoncoop.net
> http://lists.bostoncoop.net/mailman/listinfo/linux-disciples
>
--
Grace and Peace,
Rev. Karl Sokol
Franklin Grove UMC
211 N. Spring
Franklin Grove, IL 61031
If you have a talent, that's God's gift to you. If you use that talent,
that's your gift to God.
--
Red Skelton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20070207/1041f6e1/attachment.html
More information about the Linux-disciples
mailing list