Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] xargs and rm funkiness
Date: Sat, 22 May 2010 07:47:29
Message-Id: 20100522084621.27a5ad56@zaphod.digimed.co.uk
In Reply to: [gentoo-user] xargs and rm funkiness by Daniel D Jones
1 On Fri, 21 May 2010 21:49:49 -0400, Daniel D Jones wrote:
2
3 > find -name *.ext | xargs -0 rm
4 >
5 > I get the result:
6 >
7 > rm: cannot remove `Long File Name One.ext\nLong File Name Two.ext\nLong
8 > File Name Three.ext\n': File name too long.
9
10 xargs can suck with anything but plain ASCII-without-spaces filenames.,
11 and it quite unnecessary here.
12
13 find -name *.ext -exe rm "{}" \;
14
15 or maybe even
16
17 find -name *.ext -exe rm "{}" +
18
19
20 --
21 Neil Bothwick
22
23 He who asks a question is a fool for a minute,
24 He who doesn't ask is a fool for a lifetime.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] xargs and rm funkiness Jan Engelhardt <jengelh@×××××××.de>
Re: [gentoo-user] xargs and rm funkiness Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling)