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

Re: [SAGE] LDAP Migration Question




On Jul 2, 2007, at 14:15 , Brad Knowles wrote:

> On 7/2/07, Nick Stoughton wrote:
>
>>  If your find is POSIX conforming, then you can do
>>
>>  find / -owner $old_uid -exec chown $2 {} +
>
> Now we not only get to nuke people for excessive unnecessary use of  
> "cat", now we can whack them for unnecessary use of xargs....

xargs still wins, because -exec does a fork/exec for each file while  
xargs does them in batches.

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH