[Discuss] xargs guide

Bill Ricker bill.n1vux at gmail.com
Fri Jul 31 23:04:31 EDT 2015


On Fri, Jul 31, 2015 at 10:47 PM, Daniel Hagerty <hag at linnaean.org> wrote:
>     Newer find programs directly support this idiom with
>
> find . -exec foo {} +

| xargs has advantages over -exec.
+ Can take multiple files per exec if supported, e.g. 'rm', massively
reducing the exec() overhead.
+ can work with sources of filenames other than find

-- 
Bill Ricker
bill.n1vux at gmail.com
https://www.linkedin.com/in/n1vux



More information about the Discuss mailing list