Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month, online, via Jitsi Meet.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] xargs guide



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



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org