2009/6/9 Joerg Schilling <[email protected]> > > Volker Armin Hemmann <[email protected]> wrote: > > > On Montag 08 Juni 2009, Neil Bothwick wrote: > > > qfile --orphans $(find -H /usr/lib /lib -type f) > > > > qfile --orphans $(find -H /usr/lib /lib -type f) > > zsh: argument list too long: qfile > > This is not a zsh limitation but a Linux limitation. > You may have longer arg lists if you use Solaris ;-) > > You may avoid the problem with find . -exec prog args {} + > > Jörg > > -- > EMail:[email protected] (home) Jörg Schilling D-13353 Berlin > [email protected] (uni) > [email protected] (work) Blog: > http://schily.blogspot.com/ > URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily >
The right way to handle any size for the list returned by "find", is by using "xargs" : find -H /usr/lib /lib -type f | xargs -d'\n' qfile --orphans "xargs" fills the command line up to the maximum size, and then create another command line. Mickaël Bucas

