<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Look here first! &#187; awk</title>
	<atom:link href="http://lookherefirst.wordpress.com/category/awk/feed/" rel="self" type="application/rss+xml" />
	<link>http://lookherefirst.wordpress.com</link>
	<description>Things you always look up twice...</description>
	<lastBuildDate>Wed, 20 Jan 2010 10:16:37 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='lookherefirst.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/e8e33eca833a4fbd4ba09c35fc4588d9?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Look here first! &#187; awk</title>
		<link>http://lookherefirst.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://lookherefirst.wordpress.com/osd.xml" title="Look here first!" />
	<atom:link rel='hub' href='http://lookherefirst.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Repetitive programming</title>
		<link>http://lookherefirst.wordpress.com/2007/11/30/repetitive-programming/</link>
		<comments>http://lookherefirst.wordpress.com/2007/11/30/repetitive-programming/#comments</comments>
		<pubDate>Fri, 30 Nov 2007 10:02:33 +0000</pubDate>
		<dc:creator>beppe</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[bash awk]]></category>

		<guid isPermaLink="false">http://lookherefirst.wordpress.com/2007/11/30/repetitive-programming/</guid>
		<description><![CDATA[Hint for the lazy programmer. How many times did you need to make switches/If clauses/&#8230; with lots of conditions, maybe coming from the n-th field of a each line in a file?
You&#8217;re lucky: bash and awk are here to help. This example generates (brrr&#8230;) VB code:

#!/bin/bash
while read line
do
        [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lookherefirst.wordpress.com&blog=2221008&post=18&subd=lookherefirst&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Hint for the lazy programmer. How many times did you need to make switches/If clauses/&#8230; with lots of conditions, maybe coming from the n-th field of a each line in a file?</p>
<p>You&#8217;re lucky: bash and awk are here to help. This example generates (brrr&#8230;) VB code:</p>
<pre class="brush: python;">
#!/bin/bash
while read line
do
        echo &quot;If variable = `echo $line | awk {'print $1;'}` Then &quot; &gt;&gt; new_file
        echo &quot;  boolean = True&quot; &gt;&gt; new_file
        echo &quot;End If&quot; &gt;&gt; new_file
        echo &quot; &quot; &gt;&gt; new_file
done &lt; file_to_read</pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lookherefirst.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lookherefirst.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lookherefirst.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lookherefirst.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lookherefirst.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lookherefirst.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lookherefirst.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lookherefirst.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lookherefirst.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lookherefirst.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lookherefirst.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lookherefirst.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lookherefirst.wordpress.com&blog=2221008&post=18&subd=lookherefirst&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://lookherefirst.wordpress.com/2007/11/30/repetitive-programming/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">beppe</media:title>
		</media:content>
	</item>
	</channel>
</rss>