<?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: Gawk for dummies - Part I</title>
	<atom:link href="http://www.bgoncalves.com/notes/2007/04/16/gawk-for-dummies-part-i/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bgoncalves.com/notes/2007/04/16/gawk-for-dummies-part-i/</link>
	<description>Notes on Computation and Physics</description>
	<pubDate>Fri, 21 Nov 2008 13:47:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: L&#8217;angolo del Basetta &#124; Alessios&#8217; blog</title>
		<link>http://www.bgoncalves.com/notes/2007/04/16/gawk-for-dummies-part-i/#comment-5</link>
		<dc:creator>L&#8217;angolo del Basetta &#124; Alessios&#8217; blog</dc:creator>
		<pubDate>Tue, 24 Apr 2007 06:32:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.bgoncalves.com/notes/2007/04/16/gawk-for-dummies-part-i/#comment-5</guid>
		<description>[...] Gawk per principianti (mi chiedo come se ne possa fare meno) [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Gawk per principianti (mi chiedo come se ne possa fare meno) [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brent Ashley</title>
		<link>http://www.bgoncalves.com/notes/2007/04/16/gawk-for-dummies-part-i/#comment-3</link>
		<dc:creator>Brent Ashley</dc:creator>
		<pubDate>Tue, 17 Apr 2007 14:28:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.bgoncalves.com/notes/2007/04/16/gawk-for-dummies-part-i/#comment-3</guid>
		<description>Great to see awk being promoted!

To be clear, the expression before each code block isn't limited to regular
expressions - it can be anything resulting in a boolean value.  For
instance:

&lt;pre lang="C" line="1"&gt;# count comment-only lines in a file
/^[ \t]*#/{ count++ }
(count % 10) == 0 { print count, "comment lines" }
END{ print count, "total comment lines" }&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Great to see awk being promoted!</p>
<p>To be clear, the expression before each code block isn&#8217;t limited to regular<br />
expressions - it can be anything resulting in a boolean value.  For<br />
instance:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="c"><span style="color: #339933;"># count comment-only lines in a file</span>
<span style="color: #66cc66;">/^</span><span style="color: #66cc66;">&#91;</span> \t<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">*</span><span style="color: #339933;">#/{ count++ }</span>
<span style="color: #66cc66;">&#40;</span>count <span style="color: #66cc66;">%</span> <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">==</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#123;</span> print count, <span style="color: #ff0000;">&quot;comment lines&quot;</span> <span style="color: #66cc66;">&#125;</span>
END<span style="color: #66cc66;">&#123;</span> print count, <span style="color: #ff0000;">&quot;total comment lines&quot;</span> <span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
	</item>
</channel>
</rss>
