<?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: 8 Powerful Awk Built-in Variables &#8211; FS, OFS, RS, ORS, NR, NF, FILENAME, FNR</title>
	<atom:link href="http://www.thegeekstuff.com/2010/01/8-powerful-awk-built-in-variables-fs-ofs-rs-ors-nr-nf-filename-fnr/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thegeekstuff.com/2010/01/8-powerful-awk-built-in-variables-fs-ofs-rs-ors-nr-nf-filename-fnr/</link>
	<description>Guides, HowTos and Tips for Technology Geeks</description>
	<lastBuildDate>Thu, 09 Feb 2012 13:04:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Manu</title>
		<link>http://www.thegeekstuff.com/2010/01/8-powerful-awk-built-in-variables-fs-ofs-rs-ors-nr-nf-filename-fnr/comment-page-1/#comment-157301</link>
		<dc:creator>Manu</dc:creator>
		<pubDate>Sun, 18 Dec 2011 05:46:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=3155#comment-157301</guid>
		<description>Ramesh,
Still ex:3 is not giving expected result(shown in your example).The op is each filed is still in a new line with a space after end of field (before \n on each line).
My env is AIX 6.1 (not sure of awk version) awk --version&#124;head -1 did not give any result.I have even tried with nawk but op did not change.</description>
		<content:encoded><![CDATA[<p>Ramesh,<br />
Still ex:3 is not giving expected result(shown in your example).The op is each filed is still in a new line with a space after end of field (before \n on each line).<br />
My env is AIX 6.1 (not sure of awk version) awk &#8211;version|head -1 did not give any result.I have even tried with nawk but op did not change.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hemanth</title>
		<link>http://www.thegeekstuff.com/2010/01/8-powerful-awk-built-in-variables-fs-ofs-rs-ors-nr-nf-filename-fnr/comment-page-1/#comment-143599</link>
		<dc:creator>Hemanth</dc:creator>
		<pubDate>Tue, 22 Nov 2011 14:08:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=3155#comment-143599</guid>
		<description>Good aricle 
Helped me a lot :)</description>
		<content:encoded><![CDATA[<p>Good aricle<br />
Helped me a lot <img src='http://www.thegeekstuff.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fhefh</title>
		<link>http://www.thegeekstuff.com/2010/01/8-powerful-awk-built-in-variables-fs-ofs-rs-ors-nr-nf-filename-fnr/comment-page-1/#comment-141361</link>
		<dc:creator>fhefh</dc:creator>
		<pubDate>Thu, 17 Nov 2011 03:17:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=3155#comment-141361</guid>
		<description>you blog is good
thanks</description>
		<content:encoded><![CDATA[<p>you blog is good<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://www.thegeekstuff.com/2010/01/8-powerful-awk-built-in-variables-fs-ofs-rs-ors-nr-nf-filename-fnr/comment-page-1/#comment-114340</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Fri, 24 Jun 2011 09:12:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=3155#comment-114340</guid>
		<description>I have the following which works fine on AIX but does not on Linux using Gawk

echo &quot;a:b:c&quot; &#124; awk &#039;{FS=&quot;:&quot;; print $2}&#039;

On AIX it produces 
b
as expected

On Linux it produces a blank line
???

I have a 100+ line awk script which makes a lot of use of FS so I need to be able to change it from : to a space to a % within the script rather than simply use -F</description>
		<content:encoded><![CDATA[<p>I have the following which works fine on AIX but does not on Linux using Gawk</p>
<p>echo &#8220;a:b:c&#8221; | awk &#8216;{FS=&#8221;:&#8221;; print $2}&#8217;</p>
<p>On AIX it produces<br />
b<br />
as expected</p>
<p>On Linux it produces a blank line<br />
???</p>
<p>I have a 100+ line awk script which makes a lot of use of FS so I need to be able to change it from : to a space to a % within the script rather than simply use -F</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SAID AL_SARIRI</title>
		<link>http://www.thegeekstuff.com/2010/01/8-powerful-awk-built-in-variables-fs-ofs-rs-ors-nr-nf-filename-fnr/comment-page-1/#comment-97457</link>
		<dc:creator>SAID AL_SARIRI</dc:creator>
		<pubDate>Mon, 11 Apr 2011 10:23:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=3155#comment-97457</guid>
		<description>In breif  this useful web for anyone went to study, so i am intresting in its subjects , specially lunix</description>
		<content:encoded><![CDATA[<p>In breif  this useful web for anyone went to study, so i am intresting in its subjects , specially lunix</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.thegeekstuff.com/2010/01/8-powerful-awk-built-in-variables-fs-ofs-rs-ors-nr-nf-filename-fnr/comment-page-1/#comment-96590</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 07 Apr 2011 10:56:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=3155#comment-96590</guid>
		<description>The Best description about Built-in Variables of awk.</description>
		<content:encoded><![CDATA[<p>The Best description about Built-in Variables of awk.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramesh Natarajan</title>
		<link>http://www.thegeekstuff.com/2010/01/8-powerful-awk-built-in-variables-fs-ofs-rs-ors-nr-nf-filename-fnr/comment-page-1/#comment-79279</link>
		<dc:creator>Ramesh Natarajan</dc:creator>
		<pubDate>Sat, 15 Jan 2011 04:56:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=3155#comment-79279</guid>
		<description>@Frank Huang,

Thanks for pointing it out. I&#039;ve corrected it. Just FYI. For me both FS&quot;\n&quot; and FS=&quot;\n&quot; worked. I&#039;m using GNU awk.
&lt;pre&gt;
$ awk --version &#124; head -1
GNU Awk 3.1.7
&lt;/pre&gt;

@Guru, @Arthur,

Please try again with FS=&quot;\n&quot; and see if it works again. If not, can you let me know what version of Awk you are using?</description>
		<content:encoded><![CDATA[<p>@Frank Huang,</p>
<p>Thanks for pointing it out. I&#8217;ve corrected it. Just FYI. For me both FS&#8221;\n&#8221; and FS=&#8221;\n&#8221; worked. I&#8217;m using GNU awk.</p>
<pre>
$ awk --version | head -1
GNU Awk 3.1.7
</pre>
<p>@Guru, @Arthur,</p>
<p>Please try again with FS=&#8221;\n&#8221; and see if it works again. If not, can you let me know what version of Awk you are using?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arthur</title>
		<link>http://www.thegeekstuff.com/2010/01/8-powerful-awk-built-in-variables-fs-ofs-rs-ors-nr-nf-filename-fnr/comment-page-1/#comment-73028</link>
		<dc:creator>arthur</dc:creator>
		<pubDate>Mon, 13 Dec 2010 15:07:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=3155#comment-73028</guid>
		<description>example 3 is still not producing the desired the output.The output produced is the same as the input</description>
		<content:encoded><![CDATA[<p>example 3 is still not producing the desired the output.The output produced is the same as the input</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: frankhuang</title>
		<link>http://www.thegeekstuff.com/2010/01/8-powerful-awk-built-in-variables-fs-ofs-rs-ors-nr-nf-filename-fnr/comment-page-1/#comment-70265</link>
		<dc:creator>frankhuang</dc:creator>
		<pubDate>Fri, 19 Nov 2010 02:59:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=3155#comment-70265</guid>
		<description>to Guru
because there is an error in example 3
line 
FS&quot;\n&quot;;
should be 
FS=&quot;\n&quot;;</description>
		<content:encoded><![CDATA[<p>to Guru<br />
because there is an error in example 3<br />
line<br />
FS&#8221;\n&#8221;;<br />
should be<br />
FS=&#8221;\n&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 50 Most Frequently Used UNIX / Linux Commands (With Examples)</title>
		<link>http://www.thegeekstuff.com/2010/01/8-powerful-awk-built-in-variables-fs-ofs-rs-ors-nr-nf-filename-fnr/comment-page-1/#comment-68974</link>
		<dc:creator>50 Most Frequently Used UNIX / Linux Commands (With Examples)</dc:creator>
		<pubDate>Mon, 08 Nov 2010 06:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=3155#comment-68974</guid>
		<description>[...] More awk examples: 8 Powerful Awk Built-in Variables – FS, OFS, RS, ORS, NR, NF, FILENAME, FNR [...]</description>
		<content:encoded><![CDATA[<p>[...] More awk examples: 8 Powerful Awk Built-in Variables – FS, OFS, RS, ORS, NR, NF, FILENAME, FNR [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Content Delivery Network via Amazon Web Services: CloudFront: static.thegeekstuff.com

Served from: www.thegeekstuff.com @ 2012-02-09 15:50:38 -->
