<?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: Converting Null</title>
	<atom:link href="http://hash-bang.net/2009/04/converting-null/feed/" rel="self" type="application/rss+xml" />
	<link>http://hash-bang.net/2009/04/converting-null/</link>
	<description>The start of all wonderful things</description>
	<lastBuildDate>Thu, 26 Apr 2012 13:44:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: mc</title>
		<link>http://hash-bang.net/2009/04/converting-null/comment-page-1/#comment-2664</link>
		<dc:creator>mc</dc:creator>
		<pubDate>Mon, 05 Apr 2010 23:45:17 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=136#comment-2664</guid>
		<description>Depends what you are doing I suppose. I was assuming &#039;cmd&#039; would be something like &#039;xargs -0&#039; as so:
&lt;code&gt;find -type f &#124; 0 &#124; xargs -0 echo&lt;/code&gt;
Which works exactly the same as:
&lt;code&gt;find -type f -print0 &#124; xargs -0 echo&lt;/code&gt;
I guess it depends on what the command is and how nicely it can process null characters. &#039;0&#039; was originally designed so that programs that do &lt;em&gt;not&lt;/em&gt; understand null terminated arguments can work. A good example would be:
&lt;code&gt;ls -1 &#124; 0 &#124; xargs -0 echo&lt;/code&gt;
Where poor &#039;ls&#039; cannot understand null terminated file names and thus would fail on any file name containing whitespace.</description>
		<content:encoded><![CDATA[<p>Depends what you are doing I suppose. I was assuming &#8216;cmd&#8217; would be something like &#8216;xargs -0&#8242; as so:<br />
<code>find -type f | 0 | xargs -0 echo</code><br />
Which works exactly the same as:<br />
<code>find -type f -print0 | xargs -0 echo</code><br />
I guess it depends on what the command is and how nicely it can process null characters. &#8217;0&#8242; was originally designed so that programs that do <em>not</em> understand null terminated arguments can work. A good example would be:<br />
<code>ls -1 | 0 | xargs -0 echo</code><br />
Where poor &#8216;ls&#8217; cannot understand null terminated file names and thus would fail on any file name containing whitespace.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sma</title>
		<link>http://hash-bang.net/2009/04/converting-null/comment-page-1/#comment-2662</link>
		<dc:creator>sma</dc:creator>
		<pubDate>Fri, 02 Apr 2010 22:19:36 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=136#comment-2662</guid>
		<description>Hm, instead of &quot;find -type f &#124; 0 &#124; cmd &#124; ...&quot; you obviously meant &quot;find -type f &#124; cmd &#124; 0 &#124; ...&quot;.</description>
		<content:encoded><![CDATA[<p>Hm, instead of &#8220;find -type f | 0 | cmd | &#8230;&#8221; you obviously meant &#8220;find -type f | cmd | 0 | &#8230;&#8221;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

