<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Find is a beautiful tool</title>
	<atom:link href="http://eriwen.com/productivity/find-is-a-beautiful-tool/feed/" rel="self" type="application/rss+xml" />
	<link>http://eriwen.com/productivity/find-is-a-beautiful-tool/</link>
	<description>Programming productively with open-source tools</description>
	<lastBuildDate>Fri, 11 May 2012 19:13:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: rdm</title>
		<link>http://eriwen.com/productivity/find-is-a-beautiful-tool/#comment-8092</link>
		<dc:creator>rdm</dc:creator>
		<pubDate>Fri, 13 Apr 2012 19:47:13 +0000</pubDate>
		<guid isPermaLink="false">http://eriwen.com/?p=59#comment-8092</guid>
		<description>Find is a beautiful tool, but xargs is a warty beast.

The problem is that there is no way good way to get xargs to respect the unix convention where the newline character delimits &quot;records&quot;.

The default from xargs is whitespace delimited arguments, which is almost the right thing, but not quite.  Using -print0 in find and -0 in xargs gives us null delimited arguments which sort of mostly works, except [for example] when you want to pipe the result through grep and then another instance of xargs.  (And this is perhaps motivated by the fact that some file systems allowed newline characters in file names.  Clearly, that&#039;s a good reason to not support newline delimited records...)

Another approach to work around this wart, is use &lt;code&gt;grep -v &#039; &#039;&lt;/code&gt; (or &lt;code&gt;grep -v &#039;[  ]&#039;&lt;/code&gt; where the second space there is replaced with a tab character).  This strips out the lines which would be mishandled by xargs and you can pretend then that whitespace delimited data was what you really wanted.</description>
		<content:encoded><![CDATA[<p>Find is a beautiful tool, but xargs is a warty beast.</p>
<p>The problem is that there is no way good way to get xargs to respect the unix convention where the newline character delimits &#8220;records&#8221;.</p>
<p>The default from xargs is whitespace delimited arguments, which is almost the right thing, but not quite.  Using -print0 in find and -0 in xargs gives us null delimited arguments which sort of mostly works, except [for example] when you want to pipe the result through grep and then another instance of xargs.  (And this is perhaps motivated by the fact that some file systems allowed newline characters in file names.  Clearly, that&#8217;s a good reason to not support newline delimited records&#8230;)</p>
<p>Another approach to work around this wart, is use <code>grep -v ' '</code> (or <code>grep -v '[  ]'</code> where the second space there is replaced with a tab character).  This strips out the lines which would be mishandled by xargs and you can pretend then that whitespace delimited data was what you really wanted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Visto nel Web &#8211; 1 &#171; Ok, panico</title>
		<link>http://eriwen.com/productivity/find-is-a-beautiful-tool/#comment-7599</link>
		<dc:creator>Visto nel Web &#8211; 1 &#171; Ok, panico</dc:creator>
		<pubDate>Thu, 08 Dec 2011 13:00:54 +0000</pubDate>
		<guid isPermaLink="false">http://eriwen.com/?p=59#comment-7599</guid>
		<description>[...] Find is a beautiful tool Ancora sui comandi della shell, in questo caso find. Ma è anche per segnalare tutto il blog (e a me piace anche il layout, da programmatore d&#8217;antan, ma non so se posso dirlo qui). ::: Eric Wendelin&#8217;s [...]</description>
		<content:encoded><![CDATA[<p>[...] Find is a beautiful tool Ancora sui comandi della shell, in questo caso find. Ma è anche per segnalare tutto il blog (e a me piace anche il layout, da programmatore d&#8217;antan, ma non so se posso dirlo qui). ::: Eric Wendelin&#8217;s [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Richardson</title>
		<link>http://eriwen.com/productivity/find-is-a-beautiful-tool/#comment-7580</link>
		<dc:creator>Andrew Richardson</dc:creator>
		<pubDate>Tue, 06 Dec 2011 17:59:36 +0000</pubDate>
		<guid isPermaLink="false">http://eriwen.com/?p=59#comment-7580</guid>
		<description>Find is especially useful when paired with loops (for/while). That&#039;s when it saves me the most hassle</description>
		<content:encoded><![CDATA[<p>Find is especially useful when paired with loops (for/while). That&#8217;s when it saves me the most hassle</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noticeable Hacker News I Read(2011/07) &#124; David Euler on programming, design and linux</title>
		<link>http://eriwen.com/productivity/find-is-a-beautiful-tool/#comment-6623</link>
		<dc:creator>Noticeable Hacker News I Read(2011/07) &#124; David Euler on programming, design and linux</dc:creator>
		<pubDate>Mon, 01 Aug 2011 14:48:16 +0000</pubDate>
		<guid isPermaLink="false">http://eriwen.com/?p=59#comment-6623</guid>
		<description>[...] Find is a beautiful tool [...]</description>
		<content:encoded><![CDATA[<p>[...] Find is a beautiful tool [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Wendelin</title>
		<link>http://eriwen.com/productivity/find-is-a-beautiful-tool/#comment-6554</link>
		<dc:creator>Eric Wendelin</dc:creator>
		<pubDate>Wed, 27 Jul 2011 14:13:28 +0000</pubDate>
		<guid isPermaLink="false">http://eriwen.com/?p=59#comment-6554</guid>
		<description>If you have a particularly good article on Powershell in mind, I&#039;ll be happy to put it in the article.</description>
		<content:encoded><![CDATA[<p>If you have a particularly good article on Powershell in mind, I&#8217;ll be happy to put it in the article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: spuk</title>
		<link>http://eriwen.com/productivity/find-is-a-beautiful-tool/#comment-6553</link>
		<dc:creator>spuk</dc:creator>
		<pubDate>Wed, 27 Jul 2011 05:06:47 +0000</pubDate>
		<guid isPermaLink="false">http://eriwen.com/?p=59#comment-6553</guid>
		<description>On Windows, it is actually worth it to learn Powershell.</description>
		<content:encoded><![CDATA[<p>On Windows, it is actually worth it to learn Powershell.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bvk</title>
		<link>http://eriwen.com/productivity/find-is-a-beautiful-tool/#comment-6551</link>
		<dc:creator>bvk</dc:creator>
		<pubDate>Tue, 26 Jul 2011 15:16:13 +0000</pubDate>
		<guid isPermaLink="false">http://eriwen.com/?p=59#comment-6551</guid>
		<description>Consider using this tool if in doubts: http://find.unixpin.com</description>
		<content:encoded><![CDATA[<p>Consider using this tool if in doubts: <a href="http://find.unixpin.com" rel="nofollow">http://find.unixpin.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mahmoudimus</title>
		<link>http://eriwen.com/productivity/find-is-a-beautiful-tool/#comment-6539</link>
		<dc:creator>mahmoudimus</dc:creator>
		<pubDate>Mon, 25 Jul 2011 16:00:15 +0000</pubDate>
		<guid isPermaLink="false">http://eriwen.com/?p=59#comment-6539</guid>
		<description>Great article highlighting the importance of the good ol&#039; unix utilities. 

I&#039;m primarily writing this comment because I almost closed the page due to your blog&#039;s color scheme / design. It&#039;s simply too distracting. Lots of colors and no clear defining borders -- for example, your shell commands are intertwined via the text, making it not easy on the eyes.

Hope this helps!</description>
		<content:encoded><![CDATA[<p>Great article highlighting the importance of the good ol&#8217; unix utilities. </p>
<p>I&#8217;m primarily writing this comment because I almost closed the page due to your blog&#8217;s color scheme / design. It&#8217;s simply too distracting. Lots of colors and no clear defining borders &#8212; for example, your shell commands are intertwined via the text, making it not easy on the eyes.</p>
<p>Hope this helps!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

