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. |