<?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/"
	>

<channel>
	<title>My Workday &#187; AWK</title>
	<atom:link href="http://www.goworkday.com/tag/awk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.goworkday.com</link>
	<description>Let&#039;s talk TECH</description>
	<lastBuildDate>Tue, 23 Mar 2010 03:28:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Using Shell Variables with AWK</title>
		<link>http://www.goworkday.com/2008/06/21/using-shell-variables-with-awk/</link>
		<comments>http://www.goworkday.com/2008/06/21/using-shell-variables-with-awk/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 00:17:19 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[AWK]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=10</guid>
		<description><![CDATA[<br/>Pattern matching example: ?View Code BASH1 awk '/foo1/ &#38;&#38; /foo2/ { print $1 }' To use shell variables simply do the following: ?View Code BASH1 2 3 4 foo1=&#123;pattern1&#125; foo2=&#123;pattern2&#125; &#160; awk &#34;/$foo1/ &#38;&#38; /$foo2/&#34;'{ print $1 }']]></description>
			<content:encoded><![CDATA[<br/><p>Pattern matching example:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p10code3'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p103"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p10code3"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'/foo1/ &amp;&amp; /foo2/ { print $1 }'</span></pre></td></tr></table></div>

<p>To use shell variables simply do the following:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p10code4'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p104"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p10code4"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">foo1</span>=<span style="color: #7a0874; font-weight: bold;">&#123;</span>pattern1<span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #007800;">foo2</span>=<span style="color: #7a0874; font-weight: bold;">&#123;</span>pattern2<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">&quot;/<span style="color: #007800;">$foo1</span>/ &amp;&amp; /<span style="color: #007800;">$foo2</span>/&quot;</span><span style="color: #ff0000;">'{ print $1 }'</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2008/06/21/using-shell-variables-with-awk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
