<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-7997313029981170997.post8131828516394612421..comments</id><updated>2010-09-14T12:40:24.647-04:00</updated><category term='mobile'/><category term='Fedora'/><category term='postgres'/><category term='tools'/><category term='sysadmin'/><category term='pentaho'/><category term='community'/><category term='hosting'/><category term='analytics'/><category term='SELinux'/><category term='perl data-structures json'/><category term='redhat'/><category term='audio'/><category term='travel'/><category term='css'/><category term='git'/><category term='tips'/><category term='nginx'/><category term='Spree'/><category term='cakephp'/><category term='email'/><category term='nosql'/><category term='social-networking'/><category term='unicode'/><category term='performance'/><category term='piggybak'/><category term='eye-candy'/><category term='reporting'/><category term='thrift'/><category term='facebook'/><category term='visualization'/><category term='openbsd'/><category term='mysql'/><category term='scalability'/><category term='riak'/><category term='security'/><category term='CentOS'/><category term='graphics'/><category term='cucumber'/><category term='rvm'/><category term='cloud'/><category term='django'/><category term='remote-work'/><category term='networking'/><category term='wordpress'/><category term='perlbrew'/><category term='optimization'/><category term='book review'/><category term='dropbox'/><category term='sinatra'/><category term='design'/><category term='mp3'/><category term='ruby-and-ruby-on-rails'/><category term='testing'/><category term='open-source'/><category term='json'/><category term='ruby'/><category term='yui'/><category term='virtualization'/><category term='COTS'/><category term='Camps'/><category term='javascript'/><category term='workflow'/><category term='sponsorship'/><category term='perl'/><category term='messaging'/><category term='environment'/><category term='gnu'/><category term='lua'/><category term='rpm'/><category term='browsers'/><category term='configuration-management'/><category term='python'/><category term='ecommerce'/><category term='Conference'/><category term='voldemort'/><category term='image'/><category term='jasper'/><category term='clients'/><category term='dbdpg'/><category term='Android'/><category term='database'/><category term='version-control'/><category term='linux'/><category term='USPS'/><category term='data-warehouse'/><category term='openafs'/><category term='cassandra'/><category term='mondaylinks'/><category term='php'/><category term='Debian'/><category term='monitoring'/><category term='liquid-galaxy'/><category term='audit'/><category term='Bucardo'/><category term='Java'/><category term='mongodb'/><category term='API'/><category term='seo'/><category term='SeniorNet'/><category term='company'/><category term='jquery'/><category term='jobs'/><category term='sql'/><category term='search'/><category term='Ubuntu'/><category term='Interchange'/><category term='caching'/><category term='ipv6'/><title type='text'>Comments on End Point Blog: Efficiency of find -exec vs. find | xargs</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.endpoint.com/feeds/8131828516394612421/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8131828516394612421/comments/default'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2010/07/efficiency-of-find-exec-vs-find-xargs.html'/><author><name>Jon Jensen</name><uri>http://www.blogger.com/profile/18273388885281263476</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://bp3.blogger.com/_rFXHDrokbpE/SJHpPosaIQI/AAAAAAAAAAM/GnqeZuLItOA/S220/jon1.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-7206445739686823944</id><published>2010-09-14T12:40:24.647-04:00</published><updated>2010-09-14T12:40:24.647-04:00</updated><title type='text'>That&amp;#39;s neat, Brian. I didn&amp;#39;t know about th...</title><content type='html'>That&amp;#39;s neat, Brian. I didn&amp;#39;t know about that.&lt;br /&gt;&lt;br /&gt;It looks like it&amp;#39;s an extension only available in the more recent GNU versions of find, but is nice to have.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8131828516394612421/comments/default/7206445739686823944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8131828516394612421/comments/default/7206445739686823944'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2010/07/efficiency-of-find-exec-vs-find-xargs.html?showComment=1284482424647#c7206445739686823944' title=''/><author><name>Jon Jensen</name><uri>http://www.blogger.com/profile/18273388885281263476</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://bp3.blogger.com/_rFXHDrokbpE/SJHpPosaIQI/AAAAAAAAAAM/GnqeZuLItOA/S220/jon1.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2010/07/efficiency-of-find-exec-vs-find-xargs.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-8131828516394612421' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/8131828516394612421' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-932649491'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-8648458517851742638</id><published>2010-09-14T12:18:32.533-04:00</published><updated>2010-09-14T12:18:32.533-04:00</updated><title type='text'>You don&amp;#39;t have to use xargs to get this behavi...</title><content type='html'>You don&amp;#39;t have to use xargs to get this behavious. Just use &lt;b&gt;-exec command {} +&lt;/b&gt;. Note the plus sign instead of the semicolon.&lt;br /&gt;&lt;br /&gt;From the man page:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;This  variant  of the -exec action runs the specified command on the selected files, but the command line is built  by  appending each  selected file name at the end; the total number of invocations of the command will  be  much  less  than  the  number  of matched  files. The command line is built in much the same way that xargs builds its command lines.  Only one instance of  ‘{}’ is  allowed  within the command.  The command is executed in the starting directory.&lt;/i&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8131828516394612421/comments/default/8648458517851742638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8131828516394612421/comments/default/8648458517851742638'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2010/07/efficiency-of-find-exec-vs-find-xargs.html?showComment=1284481112533#c8648458517851742638' title=''/><author><name>Brian</name><uri>http://polibyte.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2010/07/efficiency-of-find-exec-vs-find-xargs.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-8131828516394612421' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/8131828516394612421' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1620522463'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-8382214600450802556</id><published>2010-08-02T12:54:46.028-04:00</published><updated>2010-08-02T12:54:46.028-04:00</updated><title type='text'>tante, good point about -delete, but note also tha...</title><content type='html'>tante, good point about -delete, but note also that there are some pretty serious limitations (can&amp;#39;t use -prune) and risks (can accidentally delete everything before other matches!) to using it. Quoting from the man page:&lt;br /&gt;&lt;br /&gt;&amp;quot;Warnings:  Don&amp;#39;t  forget that the find command line is evaluated as an expression, so putting -delete first will make find try to delete everything below the starting points you specified. When testing a find  command  line  that  you later intend  to  use with -delete, you should explicitly specify -depth in order to avoid later surprises. Because -delete implies -depth, you cannot usefully use -prune and -delete together.&amp;quot;&lt;br /&gt;&lt;br /&gt;Because of that, I find xargs a better option in most cases, but certainly I like -delete better than -exec rm.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8131828516394612421/comments/default/8382214600450802556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8131828516394612421/comments/default/8382214600450802556'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2010/07/efficiency-of-find-exec-vs-find-xargs.html?showComment=1280768086028#c8382214600450802556' title=''/><author><name>Jon Jensen</name><uri>http://www.blogger.com/profile/18273388885281263476</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://bp3.blogger.com/_rFXHDrokbpE/SJHpPosaIQI/AAAAAAAAAAM/GnqeZuLItOA/S220/jon1.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2010/07/efficiency-of-find-exec-vs-find-xargs.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-8131828516394612421' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/8131828516394612421' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-932649491'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-6548894149134733747</id><published>2010-07-29T09:19:27.810-04:00</published><updated>2010-07-29T09:19:27.810-04:00</updated><title type='text'>Note that with xargs&amp;#39; -n option, you *can* for...</title><content type='html'>Note that with xargs&amp;#39; -n option, you *can* force xargs to run once per file, if whatever you&amp;#39;re passing the file names to can only handle one at a time. Of course, you could also use -exec for that. Another helpful argument is GNU xargs&amp;#39; --no-run-if-empty option (or the short version: -r). Surprisingly, by default xargs runs the command once even if there is no input.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8131828516394612421/comments/default/6548894149134733747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8131828516394612421/comments/default/6548894149134733747'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2010/07/efficiency-of-find-exec-vs-find-xargs.html?showComment=1280409567810#c6548894149134733747' title=''/><author><name>Joshua Tolley</name><uri>http://www.blogger.com/profile/08481531515300677240</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2010/07/efficiency-of-find-exec-vs-find-xargs.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-8131828516394612421' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/8131828516394612421' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-615717728'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-1994762179233411625</id><published>2010-07-29T07:45:06.161-04:00</published><updated>2010-07-29T07:45:06.161-04:00</updated><title type='text'>One thing many people forget is that especially fo...</title><content type='html'>One thing many people forget is that especially for deleting you shouldn&amp;#39;t use &amp;quot;-exec ...&amp;quot; but just &amp;quot;-delete&amp;quot;.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8131828516394612421/comments/default/1994762179233411625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8131828516394612421/comments/default/1994762179233411625'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2010/07/efficiency-of-find-exec-vs-find-xargs.html?showComment=1280403906161#c1994762179233411625' title=''/><author><name>tante</name><uri>http://the-gay-bar.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2010/07/efficiency-of-find-exec-vs-find-xargs.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-8131828516394612421' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/8131828516394612421' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1899809633'/></entry></feed>
