Gentoo Archives: gentoo-user

From: Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling)
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] xargs and rm funkiness
Date: Wed, 26 May 2010 10:42:07
Message-Id: 4bfcfabc.lEkdmo3XeZNPbCzT%Joerg.Schilling@fokus.fraunhofer.de
In Reply to: Re: [gentoo-user] xargs and rm funkiness by Neil Bothwick
1 Neil Bothwick <neil@××××××××××.uk> wrote:
2
3 > xargs can suck with anything but plain ASCII-without-spaces filenames.,
4 > and it quite unnecessary here.
5 >
6 > find -name *.ext -exe rm "{}" \;
7 >
8 > or maybe even
9 >
10 > find -name *.ext -exe rm "{}" +
11
12 Just avoid xargs as it is the source of the proplem.
13
14 find -name *.ext -exec some-command "{}" +
15
16 Is the preferred method since 1990.
17
18 Jörg
19
20 --
21 EMail:joerg@××××××××××××××××××××××××.de (home) Jörg Schilling D-13353 Berlin
22 js@××××××××××××.de (uni)
23 joerg.schilling@××××××××××××××××.de (work) Blog: http://schily.blogspot.com/
24 URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily