1 |
On Sat, 22 May 2010 10:10:02 +0200, Neil Bothwick wrote about Re: |
2 |
[gentoo-user] xargs and rm funkiness: |
3 |
|
4 |
>On Fri, 21 May 2010 21:49:49 -0400, Daniel D Jones wrote: |
5 |
> |
6 |
>> find -name *.ext | xargs -0 rm |
7 |
>> |
8 |
>> I get the result: |
9 |
>> |
10 |
>> rm: cannot remove `Long File Name One.ext\nLong File Name |
11 |
>> Two.ext\nLong File Name Three.ext\n': File name too long. |
12 |
> |
13 |
>xargs can suck with anything but plain ASCII-without-spaces filenames., |
14 |
>and it quite unnecessary here. |
15 |
> |
16 |
>find -name *.ext -exe rm "{}" \; |
17 |
> |
18 |
>or maybe even |
19 |
> |
20 |
>find -name *.ext -exe rm "{}" + |
21 |
|
22 |
Or simpler still: |
23 |
|
24 |
find -name *.ext -delete |
25 |
|
26 |
-- |
27 |
Regards, |
28 |
|
29 |
Dave [RLU #314465] |
30 |
====================================================================== |
31 |
dwnoon@××××××××.com (David W Noon) |
32 |
====================================================================== |