<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Tips on using the UNIX find command</title>
	<atom:link href="http://administratosphere.wordpress.com/2007/11/20/tips-on-using-the-unix-find-command/feed/" rel="self" type="application/rss+xml" />
	<link>http://administratosphere.wordpress.com/2007/11/20/tips-on-using-the-unix-find-command/</link>
	<description>UNIX and Linux System Administration</description>
	<pubDate>Wed, 23 Jul 2008 09:46:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
		<item>
		<title>By: Hal Itosis</title>
		<link>http://administratosphere.wordpress.com/2007/11/20/tips-on-using-the-unix-find-command/#comment-464</link>
		<dc:creator>Hal Itosis</dc:creator>
		<pubDate>Sun, 13 Apr 2008 20:49:04 +0000</pubDate>
		<guid isPermaLink="false">http://administratosphere.wordpress.com/2007/11/20/tips-on-using-the-unix-find-command/#comment-464</guid>
		<description>You may be interested to know that -- in OS X Leopard -- the find command has the new enhanced version of -exec which emulates xargs behavior. But new syntax is required to invoke it: 

-exec "command" {} +

Just try some of these commands (tailored for Mac files), and compare their execution times as well as their output formats (which provide evidence whether new instances of "command" were spawned):

time find /Library/Scripts -type f -exec file -n {} \;
time find /Library/Scripts -type f -print0&#124;xargs -0 file -n
time find /Library/Scripts -type f -exec file -n {} +

time find /Library/Scripts -type f -exec ls -lSr {} \;
time find /Library/Scripts -type f -print0&#124;xargs -0 ls -lSr
time find /Library/Scripts -type f -exec ls -lSr {} +

time find /Library/Scripts -type f -exec du -cks {} \;
time find /Library/Scripts -type f -print0&#124;xargs -0 du -cks
time find /Library/Scripts -type f -exec du -cks {} +

I think you'll "find" the new -exec may even surpass xargs!

-HI-</description>
		<content:encoded><![CDATA[<p>You may be interested to know that &#8212; in OS X Leopard &#8212; the find command has the new enhanced version of -exec which emulates xargs behavior. But new syntax is required to invoke it: </p>
<p>-exec &#8220;command&#8221; {} +</p>
<p>Just try some of these commands (tailored for Mac files), and compare their execution times as well as their output formats (which provide evidence whether new instances of &#8220;command&#8221; were spawned):</p>
<p>time find /Library/Scripts -type f -exec file -n {} \;<br />
time find /Library/Scripts -type f -print0|xargs -0 file -n<br />
time find /Library/Scripts -type f -exec file -n {} +</p>
<p>time find /Library/Scripts -type f -exec ls -lSr {} \;<br />
time find /Library/Scripts -type f -print0|xargs -0 ls -lSr<br />
time find /Library/Scripts -type f -exec ls -lSr {} +</p>
<p>time find /Library/Scripts -type f -exec du -cks {} \;<br />
time find /Library/Scripts -type f -print0|xargs -0 du -cks<br />
time find /Library/Scripts -type f -exec du -cks {} +</p>
<p>I think you&#8217;ll &#8220;find&#8221; the new -exec may even surpass xargs!</p>
<p>-HI-</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: YaGonna &#187; note2self: 20.11.2007</title>
		<link>http://administratosphere.wordpress.com/2007/11/20/tips-on-using-the-unix-find-command/#comment-81</link>
		<dc:creator>YaGonna &#187; note2self: 20.11.2007</dc:creator>
		<pubDate>Tue, 20 Nov 2007 10:56:52 +0000</pubDate>
		<guid isPermaLink="false">http://administratosphere.wordpress.com/2007/11/20/tips-on-using-the-unix-find-command/#comment-81</guid>
		<description>[...] Tips on using the UNIX find command « UNIX Administratosphere:      &#171; Rezepte, die ich mal ausprobieren möchte &#160; [...]</description>
		<content:encoded><![CDATA[<p>[...] Tips on using the UNIX find command « UNIX Administratosphere:      &laquo; Rezepte, die ich mal ausprobieren möchte &nbsp; [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
