public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Neil Bothwick <neil@digimed.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] xargs and rm funkiness
Date: Sat, 22 May 2010 08:46:21 +0100	[thread overview]
Message-ID: <20100522084621.27a5ad56@zaphod.digimed.co.uk> (raw)
In-Reply-To: <201005212149.49715.ddjones@riddlemaster.org>

[-- Attachment #1: Type: text/plain, Size: 561 bytes --]

On Fri, 21 May 2010 21:49:49 -0400, Daniel D Jones wrote:

> find -name *.ext | xargs -0 rm
> 
> I get the result:
> 
> rm: cannot remove `Long File Name One.ext\nLong File Name Two.ext\nLong
> File Name Three.ext\n': File name too long.

xargs can suck with anything but plain ASCII-without-spaces filenames.,
and it quite unnecessary here.

find -name *.ext -exe rm "{}" \;

or maybe even

find -name *.ext -exe rm "{}" +


-- 
Neil Bothwick

He who asks a question is a fool for a minute,
He who doesn't ask is a fool for a lifetime.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  parent reply	other threads:[~2010-05-22  7:47 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-22  1:49 [gentoo-user] xargs and rm funkiness Daniel D Jones
2010-05-22  2:11 ` covici
2010-05-22 16:04   ` Daniel D Jones
2010-05-22  7:46 ` Neil Bothwick [this message]
2010-05-22 18:38   ` Jan Engelhardt
2010-05-22 22:02     ` Neil Bothwick
2010-05-26 10:41   ` Joerg Schilling
2010-05-22  7:49 ` Patrick Holthaus
2010-05-26 10:42   ` Joerg Schilling
2010-05-29 15:05     ` Daniel D Jones
2010-05-29 18:04       ` Etaoin Shrdlu
2010-05-29 18:43         ` Joerg Schilling
2010-05-29 18:59       ` Alan McKinnon
2010-05-29 21:01         ` Daniel D Jones
     [not found] <eMMk1-3Xc-13@gated-at.bofh.it>
     [not found] ` <eMRWq-3I8-5@gated-at.bofh.it>
2010-05-22 11:35   ` David W Noon
2010-05-22 12:25     ` Neil Bothwick
2010-05-23 17:51       ` Daniel D Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100522084621.27a5ad56@zaphod.digimed.co.uk \
    --to=neil@digimed.co.uk \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox