1 |
Etaoin Shrdlu <shrdlu@×××××××××××××.org> wrote: |
2 |
|
3 |
> On Saturday 29 May 2010, Daniel D Jones wrote: |
4 |
> > On Wednesday 26 May 2010 06:42:08 Joerg Schilling wrote: |
5 |
> > > Patrick Holthaus <patrick.holthaus@×××××××××××××.de> wrote: |
6 |
> > > > You might try: |
7 |
> > > > |
8 |
> > > > find -name *.ext -print0 | xargs -0 rm |
9 |
> > > |
10 |
> > > But this is non-standard. |
11 |
> > |
12 |
> > In what way is this non-standard? That is, what standard is it contrary |
13 |
> > to? |
14 |
> |
15 |
> SUS (aka POSIX), although some people are pushing to include -print0 | xargs |
16 |
> -0 into the standard. What Joerg meant is that the above construct will only |
17 |
> run when using GNU find and xargs. Of course, if you're running Linux, that is |
18 |
> probably the case already anyway. |
19 |
> |
20 |
|
21 |
And there is a big cheavat against this proposal as xargs -0 was introduced |
22 |
long after -exec + exsists and as introducing xargs -0 would force us to |
23 |
change _many_ other utilities too in order to come to a consistent overall |
24 |
behavior again. For this reason, there was even the proposal to instead remove |
25 |
"xargs" from the standard as -exec + does everything that is needed. |
26 |
|
27 |
Jörg |
28 |
|
29 |
-- |
30 |
EMail:joerg@××××××××××××××××××××××××.de (home) Jörg Schilling D-13353 Berlin |
31 |
js@××××××××××××.de (uni) |
32 |
joerg.schilling@××××××××××××××××.de (work) Blog: http://schily.blogspot.com/ |
33 |
URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily |