1 |
2009/6/9 Joerg Schilling <Joerg.Schilling@××××××××××××××××.de> |
2 |
> |
3 |
> Volker Armin Hemmann <volkerarmin@××××××××××.com> wrote: |
4 |
> |
5 |
> > On Montag 08 Juni 2009, Neil Bothwick wrote: |
6 |
> > > qfile --orphans $(find -H /usr/lib /lib -type f) |
7 |
> > |
8 |
> > qfile --orphans $(find -H /usr/lib /lib -type f) |
9 |
> > zsh: argument list too long: qfile |
10 |
> |
11 |
> This is not a zsh limitation but a Linux limitation. |
12 |
> You may have longer arg lists if you use Solaris ;-) |
13 |
> |
14 |
> You may avoid the problem with find . -exec prog args {} + |
15 |
> |
16 |
> Jörg |
17 |
> |
18 |
> -- |
19 |
> EMail:joerg@××××××××××××××××××××××××.de (home) Jörg Schilling D-13353 Berlin |
20 |
> js@××××××××××××.de (uni) |
21 |
> joerg.schilling@××××××××××××××××.de (work) Blog: http://schily.blogspot.com/ |
22 |
> URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily |
23 |
> |
24 |
|
25 |
The right way to handle any size for the list returned by "find", is |
26 |
by using "xargs" : |
27 |
|
28 |
find -H /usr/lib /lib -type f | xargs -d'\n' qfile --orphans |
29 |
|
30 |
"xargs" fills the command line up to the maximum size, and then create |
31 |
another command line. |
32 |
|
33 |
Mickaël Bucas |