--On February 15, 2011 12:57:12 PM +0300 Peter Andreev <andreev.pe...@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

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to