<?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: Useless use of &#8230;</title>
	<atom:link href="http://glandium.org/blog/?feed=rss2&#038;p=220" rel="self" type="application/rss+xml" />
	<link>http://glandium.org/blog/?p=220</link>
	<description>glandium.org</description>
	<lastBuildDate>Sun, 05 Sep 2010 12:27:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Denilson</title>
		<link>http://glandium.org/blog/?p=220&#038;cpage=1#comment-11784</link>
		<dc:creator>Denilson</dc:creator>
		<pubDate>Mon, 05 Jan 2009 19:29:12 +0000</pubDate>
		<guid isPermaLink="false">http://glandium.org/blog/?p=220#comment-11784</guid>
		<description>Talking about &quot;wc&quot;...

If you want to know the size of a file in bytes, &quot;wc -c foo.bar&quot; is the best choice, because it will be smart enough to not read the whole file, but instead will seek directly to the end, or get the size from file stats. In other words, &quot;wc -c&quot; is fast, while &quot;wc&quot; isn&#039;t.

Other option is &quot;find -printf &#039;%s %p\n&#039;&quot;</description>
		<content:encoded><![CDATA[<p>Talking about &#8220;wc&#8221;&#8230;</p>
<p>If you want to know the size of a file in bytes, &#8220;wc -c foo.bar&#8221; is the best choice, because it will be smart enough to not read the whole file, but instead will seek directly to the end, or get the size from file stats. In other words, &#8220;wc -c&#8221; is fast, while &#8220;wc&#8221; isn&#8217;t.</p>
<p>Other option is &#8220;find -printf &#8216;%s %p\n&#8217;&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ushimitsudoki</title>
		<link>http://glandium.org/blog/?p=220&#038;cpage=1#comment-11753</link>
		<dc:creator>ushimitsudoki</dc:creator>
		<pubDate>Sun, 21 Dec 2008 16:01:46 +0000</pubDate>
		<guid isPermaLink="false">http://glandium.org/blog/?p=220#comment-11753</guid>
		<description>Wow! I am guilty of some of these.

Please keep this series up!</description>
		<content:encoded><![CDATA[<p>Wow! I am guilty of some of these.</p>
<p>Please keep this series up!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: glandium</title>
		<link>http://glandium.org/blog/?p=220&#038;cpage=1#comment-11751</link>
		<dc:creator>glandium</dc:creator>
		<pubDate>Sun, 21 Dec 2008 12:09:58 +0000</pubDate>
		<guid isPermaLink="false">http://glandium.org/blog/?p=220#comment-11751</guid>
		<description>Julian: Actually, the less-than symbol was supposed to be in my post, but somehow didn&#039;t get there. Seems like the comment system also has problems.</description>
		<content:encoded><![CDATA[<p>Julian: Actually, the less-than symbol was supposed to be in my post, but somehow didn&#8217;t get there. Seems like the comment system also has problems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julian Andres Klode</title>
		<link>http://glandium.org/blog/?p=220&#038;cpage=1#comment-11749</link>
		<dc:creator>Julian Andres Klode</dc:creator>
		<pubDate>Sun, 21 Dec 2008 00:36:05 +0000</pubDate>
		<guid isPermaLink="false">http://glandium.org/blog/?p=220#comment-11749</guid>
		<description>Your Blog has problems with the less-than symbol in comments. It just ignores everything after it.</description>
		<content:encoded><![CDATA[<p>Your Blog has problems with the less-than symbol in comments. It just ignores everything after it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julian Andres Klode</title>
		<link>http://glandium.org/blog/?p=220&#038;cpage=1#comment-11748</link>
		<dc:creator>Julian Andres Klode</dc:creator>
		<pubDate>Sun, 21 Dec 2008 00:34:17 +0000</pubDate>
		<guid isPermaLink="false">http://glandium.org/blog/?p=220#comment-11748</guid>
		<description>more $file &#124; wc &#124; awk &#039;{print $1}&#039; is not the same as wc -l $file, it is the same as &quot;wc -l &lt; $file&quot;</description>
		<content:encoded><![CDATA[<p>more $file | wc | awk &#8216;{print $1}&#8217; is not the same as wc -l $file, it is the same as &#8220;wc -l < $file&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tzafrir Cohen</title>
		<link>http://glandium.org/blog/?p=220&#038;cpage=1#comment-11747</link>
		<dc:creator>Tzafrir Cohen</dc:creator>
		<pubDate>Sat, 20 Dec 2008 16:25:41 +0000</pubDate>
		<guid isPermaLink="false">http://glandium.org/blog/?p=220#comment-11747</guid>
		<description>actually wc is one of them. Hence the two commands you mentioned are not exactly the same:

$ wc -l test_doc
0 test_doc
$ wc -l &lt; test_doc
0</description>
		<content:encoded><![CDATA[<p>actually wc is one of them. Hence the two commands you mentioned are not exactly the same:</p>
<p>$ wc -l test_doc<br />
0 test_doc<br />
$ wc -l < test_doc<br />
0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://glandium.org/blog/?p=220&#038;cpage=1#comment-11746</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Sat, 20 Dec 2008 13:50:33 +0000</pubDate>
		<guid isPermaLink="false">http://glandium.org/blog/?p=220#comment-11746</guid>
		<description>The other reason you might want the &quot;cat file &#124;&quot; bit is that this way, stdin is a pipe rather than a file. Some programs behave differently when stdin is not seekable.</description>
		<content:encoded><![CDATA[<p>The other reason you might want the &#8220;cat file |&#8221; bit is that this way, stdin is a pipe rather than a file. Some programs behave differently when stdin is not seekable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://glandium.org/blog/?p=220&#038;cpage=1#comment-11745</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Sat, 20 Dec 2008 11:49:52 +0000</pubDate>
		<guid isPermaLink="false">http://glandium.org/blog/?p=220#comment-11745</guid>
		<description>cat file &#124; pipe-construction is not always totally useless. When iteratively building a piped set of commands, you may do something like head some-file &#124; try-some-stuff to ensure you&#039;ve matched on the right columns, etc.; then when you are happy it works you do something like ^head^cat; or even manually edit the line and insert cat at the front, which may be quicker than reworking the line to avoid the &#039;useless&#039; invocation.</description>
		<content:encoded><![CDATA[<p>cat file | pipe-construction is not always totally useless. When iteratively building a piped set of commands, you may do something like head some-file | try-some-stuff to ensure you&#8217;ve matched on the right columns, etc.; then when you are happy it works you do something like ^head^cat; or even manually edit the line and insert cat at the front, which may be quicker than reworking the line to avoid the &#8216;useless&#8217; invocation.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
