script help
Paul Schmehl
pschmehl_lists at tx.rr.com
Tue Feb 15 16:06:58 UTC 2011
--On February 15, 2011 12:57:12 PM +0300 Peter Andreev
<andreev.peter at gmail.com> wrote:
> Use of "xargs" on many files will be much faster than "find...exec"
> construction
>
> find / -type f -name copyright.htm | xargs sed -i .bak -e 's/2010/2011/g'
>
I believe you, but can you explain why this is true? What makes xargs
faster than exec?
--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
*******************************************
"It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead." Thomas Jefferson
"There are some ideas so wrong that only a very
intelligent person could believe in them." George Orwell
More information about the freebsd-questions
mailing list