<?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: 4 Awk If Statement Examples ( if, if else, if else if, :? )</title>
	<atom:link href="http://www.thegeekstuff.com/2010/02/awk-conditional-statements/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thegeekstuff.com/2010/02/awk-conditional-statements/</link>
	<description>Guides, HowTos and Tips for Technology Geeks</description>
	<lastBuildDate>Thu, 09 Feb 2012 11:52:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: SANTOSH SHROFF V</title>
		<link>http://www.thegeekstuff.com/2010/02/awk-conditional-statements/comment-page-1/#comment-165950</link>
		<dc:creator>SANTOSH SHROFF V</dc:creator>
		<pubDate>Fri, 30 Dec 2011 05:19:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=3330#comment-165950</guid>
		<description>@STUDENT:the scanf statement should be as follows...
 scanf(&quot;%d&quot;,&amp;numsweet)</description>
		<content:encoded><![CDATA[<p>@STUDENT:the scanf statement should be as follows&#8230;<br />
 scanf(&#8220;%d&#8221;,&amp;numsweet)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: student</title>
		<link>http://www.thegeekstuff.com/2010/02/awk-conditional-statements/comment-page-1/#comment-160941</link>
		<dc:creator>student</dc:creator>
		<pubDate>Sat, 24 Dec 2011 12:39:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=3330#comment-160941</guid>
		<description>Thanks for the examples.
Im not being able to find out what exactly the error is here:
#include
void main()
{
int numsweet;
double cost;
printf(“How many icecream do you want : “);
scanf(“%f, &amp;numsweet”);
cost = 12.10 * numsweet;
if (numsweet &gt; 1000)
{
printf(“The store does not have that much icecream in stock!”);
}
else
{
printf(“You have to pay $%f to the cashier!\n Thankyou!\n”, cost);
}
}

It gives a warning saying says “Possible use of numsweet before definition in funtion main. Plz help! any advice is welcomed.</description>
		<content:encoded><![CDATA[<p>Thanks for the examples.<br />
Im not being able to find out what exactly the error is here:<br />
#include<br />
void main()<br />
{<br />
int numsweet;<br />
double cost;<br />
printf(“How many icecream do you want : “);<br />
scanf(“%f, &amp;numsweet”);<br />
cost = 12.10 * numsweet;<br />
if (numsweet &gt; 1000)<br />
{<br />
printf(“The store does not have that much icecream in stock!”);<br />
}<br />
else<br />
{<br />
printf(“You have to pay $%f to the cashier!\n Thankyou!\n”, cost);<br />
}<br />
}</p>
<p>It gives a warning saying says “Possible use of numsweet before definition in funtion main. Plz help! any advice is welcomed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.thegeekstuff.com/2010/02/awk-conditional-statements/comment-page-1/#comment-141660</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 17 Nov 2011 19:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=3330#comment-141660</guid>
		<description>This is one of the best tutorials I have found online. Well written and it has solved my problem. Thank you.</description>
		<content:encoded><![CDATA[<p>This is one of the best tutorials I have found online. Well written and it has solved my problem. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.thegeekstuff.com/2010/02/awk-conditional-statements/comment-page-1/#comment-131513</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 11 Oct 2011 19:18:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=3330#comment-131513</guid>
		<description>I am trying to use the following &#039;awk&#039; command to print 60 6-column x 100 row text files to one large text file, i.e.

awk &#039;{print $1, $2, $3, $4, $5, $6}&#039; textfile1.txt &gt;&gt; Batch_data_file.txt

The command works for all but four text files.  For each of these four problem text files, it prints the first row of all six columns and nothing more.  Why might &#039;awk&#039; not be printing the remaining 99 rows?

Any help would be much appreciated.</description>
		<content:encoded><![CDATA[<p>I am trying to use the following &#8216;awk&#8217; command to print 60 6-column x 100 row text files to one large text file, i.e.</p>
<p>awk &#8216;{print $1, $2, $3, $4, $5, $6}&#8217; textfile1.txt &gt;&gt; Batch_data_file.txt</p>
<p>The command works for all but four text files.  For each of these four problem text files, it prints the first row of all six columns and nothing more.  Why might &#8216;awk&#8217; not be printing the remaining 99 rows?</p>
<p>Any help would be much appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Faheem</title>
		<link>http://www.thegeekstuff.com/2010/02/awk-conditional-statements/comment-page-1/#comment-126056</link>
		<dc:creator>Faheem</dc:creator>
		<pubDate>Wed, 07 Sep 2011 04:30:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=3330#comment-126056</guid>
		<description>awk &#039;{
if ($3 ==&quot;&quot; &#124;&#124; $4 == &quot;&quot; &#124;&#124; $5 == &quot;&quot;)
	print &quot;Some score for the student&quot;,$1,&quot;is missing&quot;;&#039;
}&#039; student-marks

There is a extra - &#039; - at the end of line &quot;	print &quot;Some score for the student&quot;,$1,&quot;is missing&quot;;&#039; &quot; please remove it,</description>
		<content:encoded><![CDATA[<p>awk &#8216;{<br />
if ($3 ==&#8221;" || $4 == &#8220;&#8221; || $5 == &#8220;&#8221;)<br />
	print &#8220;Some score for the student&#8221;,$1,&#8221;is missing&#8221;;&#8217;<br />
}&#8217; student-marks</p>
<p>There is a extra &#8211; &#8216; &#8211; at the end of line &#8221;	print &#8220;Some score for the student&#8221;,$1,&#8221;is missing&#8221;;&#8217; &#8221; please remove it,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart</title>
		<link>http://www.thegeekstuff.com/2010/02/awk-conditional-statements/comment-page-1/#comment-120500</link>
		<dc:creator>Stuart</dc:creator>
		<pubDate>Tue, 02 Aug 2011 19:27:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=3330#comment-120500</guid>
		<description>Example 1 should read:

awk &#039;{
if ($3 ==&quot;&quot; &#124;&#124; $4 == &quot;&quot; &#124;&#124; $5 == &quot;&quot;)
print &quot;Some score for the student&quot;,$1,&quot;is missing&quot;;
}&#039; student-marks

NOTE:  There is an extra &quot; &#039; &quot; character in your example.</description>
		<content:encoded><![CDATA[<p>Example 1 should read:</p>
<p>awk &#8216;{<br />
if ($3 ==&#8221;" || $4 == &#8220;&#8221; || $5 == &#8220;&#8221;)<br />
print &#8220;Some score for the student&#8221;,$1,&#8221;is missing&#8221;;<br />
}&#8217; student-marks</p>
<p>NOTE:  There is an extra &#8221; &#8216; &#8221; character in your example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 4 Bash If Statement Examples ( If then fi, If then else fi, If elif else fi, Nested if )</title>
		<link>http://www.thegeekstuff.com/2010/02/awk-conditional-statements/comment-page-1/#comment-50665</link>
		<dc:creator>4 Bash If Statement Examples ( If then fi, If then else fi, If elif else fi, Nested if )</dc:creator>
		<pubDate>Mon, 21 Jun 2010 06:02:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=3330#comment-50665</guid>
		<description>[...] are similar to the awk if statements we discussed [...]</description>
		<content:encoded><![CDATA[<p>[...] are similar to the awk if statements we discussed [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramesh Natarajan</title>
		<link>http://www.thegeekstuff.com/2010/02/awk-conditional-statements/comment-page-1/#comment-36703</link>
		<dc:creator>Ramesh Natarajan</dc:creator>
		<pubDate>Fri, 26 Feb 2010 23:05:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=3330#comment-36703</guid>
		<description>@Jameslee,

Read our &lt;a href=&quot;http://www.thegeekstuff.com/2010/01/awk-introduction-tutorial-7-awk-print-examples/&quot; rel=&quot;nofollow&quot;&gt;awk introduction tutorial&lt;/a&gt; to understand the basics of awk.</description>
		<content:encoded><![CDATA[<p>@Jameslee,</p>
<p>Read our <a href="http://www.thegeekstuff.com/2010/01/awk-introduction-tutorial-7-awk-print-examples/" rel="nofollow">awk introduction tutorial</a> to understand the basics of awk.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Caught In the Loop? Awk While, Do While, For Loop, Break, Continue, Exit Examples</title>
		<link>http://www.thegeekstuff.com/2010/02/awk-conditional-statements/comment-page-1/#comment-36124</link>
		<dc:creator>Caught In the Loop? Awk While, Do While, For Loop, Break, Continue, Exit Examples</dc:creator>
		<pubDate>Wed, 24 Feb 2010 06:03:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=3330#comment-36124</guid>
		<description>[...] This article is part of the on-going Awk Tutorial Examples series. In our earlier awk articles, we discussed about awk print, awk user-defined variables, awk built-in variables, awk operators, and awk conditional statements. [...]</description>
		<content:encoded><![CDATA[<p>[...] This article is part of the on-going Awk Tutorial Examples series. In our earlier awk articles, we discussed about awk print, awk user-defined variables, awk built-in variables, awk operators, and awk conditional statements. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jameslee</title>
		<link>http://www.thegeekstuff.com/2010/02/awk-conditional-statements/comment-page-1/#comment-35204</link>
		<dc:creator>jameslee</dc:creator>
		<pubDate>Thu, 18 Feb 2010 05:40:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=3330#comment-35204</guid>
		<description>first of all i want to know what is &quot;awk&quot;..please give some tutorials from basic</description>
		<content:encoded><![CDATA[<p>first of all i want to know what is &#8220;awk&#8221;..please give some tutorials from basic</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 12:12:11 -->
