Looking for a quick script solution

Richard Pieri richard.pieri-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Fri Jun 26 01:30:08 EDT 2009


On Jun 25, 2009, at 11:03 PM, Gordon Marx wrote:
> That's actually the behavior of find's -exec option. xargs is smarter
> than that -- it executes command lines that are as near as possible to
> the maximum length each time.


You are correct.  I had forgotten.  I knew there was a reason for  
using xargs rather than, say:

   find . -name "*.gz" -exec gunzip {} \;

--Rich P.






More information about the Discuss mailing list