<?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: How to Use Comparison Operators &#038; Data Filtering with Awk &#8211; Part 4	</title>
	<atom:link href="https://www.tecmint.com/comparison-operators-in-awk/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/comparison-operators-in-awk/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Mon, 12 Aug 2024 06:43:45 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Nathan SR		</title>
		<link>https://www.tecmint.com/comparison-operators-in-awk/comment-page-1/#comment-1597682</link>

		<dc:creator><![CDATA[Nathan SR]]></dc:creator>
		<pubDate>Tue, 28 Sep 2021 13:02:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=20847#comment-1597682</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/comparison-operators-in-awk/comment-page-1/#comment-1574108&quot;&gt;Pratiksha Kumari&lt;/a&gt;.

Hi,

Please refer: https://unix.stackexchange.com/questions/607973/compare-2-percentage-value-using-if-statement

Just &lt;strong&gt;grep&lt;/strong&gt; for &lt;strong&gt;%GC&lt;/strong&gt;, take the second field value and compare it according to your needs, as per this article.

Regards,

Nathan SR]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/comparison-operators-in-awk/comment-page-1/#comment-1574108">Pratiksha Kumari</a>.</p>
<p>Hi,</p>
<p>Please refer: <a target="_blank" href="https://unix.stackexchange.com/questions/607973/compare-2-percentage-value-using-if-statement" rel="nofollow ugc">https://unix.stackexchange.com/questions/607973/compare-2-percentage-value-using-if-statement</a></p>
<p>Just <strong>grep</strong> for <strong>%GC</strong>, take the second field value and compare it according to your needs, as per this article.</p>
<p>Regards,</p>
<p>Nathan SR</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Pratiksha Kumari		</title>
		<link>https://www.tecmint.com/comparison-operators-in-awk/comment-page-1/#comment-1574108</link>

		<dc:creator><![CDATA[Pratiksha Kumari]]></dc:creator>
		<pubDate>Tue, 24 Aug 2021 09:18:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=20847#comment-1574108</guid>

					<description><![CDATA[Forward read.

Filename	SRR11910146_1.fastq
Total Sequences	705425
%GC	46
PASS	Adapter Content	SRR11910146_1.fastq
reverse read
Filename	SRR11910146_2.fastq
Total Sequences	705425
%GC	46
PASS	Adapter Content	SRR11910146_2.fastq

I have a file that contains this and if I want to compare each row separately how can I do this . for example I have to check %GC &#062; 50 or not how can I achieve this?]]></description>
			<content:encoded><![CDATA[<p>Forward read.</p>
<p>Filename	SRR11910146_1.fastq<br />
Total Sequences	705425<br />
%GC	46<br />
PASS	Adapter Content	SRR11910146_1.fastq<br />
reverse read<br />
Filename	SRR11910146_2.fastq<br />
Total Sequences	705425<br />
%GC	46<br />
PASS	Adapter Content	SRR11910146_2.fastq</p>
<p>I have a file that contains this and if I want to compare each row separately how can I do this . for example I have to check %GC &gt; 50 or not how can I achieve this?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aaron Kili		</title>
		<link>https://www.tecmint.com/comparison-operators-in-awk/comment-page-1/#comment-976726</link>

		<dc:creator><![CDATA[Aaron Kili]]></dc:creator>
		<pubDate>Mon, 19 Mar 2018 07:15:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=20847#comment-976726</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/comparison-operators-in-awk/comment-page-1/#comment-976652&quot;&gt;Dan&lt;/a&gt;.

@Dan

Thanks for sharing this, we will take some time to analyze it.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/comparison-operators-in-awk/comment-page-1/#comment-976652">Dan</a>.</p>
<p>@Dan</p>
<p>Thanks for sharing this, we will take some time to analyze it.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dan		</title>
		<link>https://www.tecmint.com/comparison-operators-in-awk/comment-page-1/#comment-976652</link>

		<dc:creator><![CDATA[Dan]]></dc:creator>
		<pubDate>Mon, 19 Mar 2018 02:28:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=20847#comment-976652</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/comparison-operators-in-awk/comment-page-1/#comment-976231&quot;&gt;Aaron Kili&lt;/a&gt;.

My try script, while the output is good however I do feel it&#039;s a bit redundant particularly checking &lt;strong&gt;($3 ~ /^[0-9]/)&lt;/strong&gt; twice. Please simply :)

$ awk &#039;($3 ~ &quot;^[a-zA-Z]&quot;) { print $0}  (($3 ~ /^[0-9]/) &#038;&#038; ($3 &#060;= 30)) { print $0,&#034; 30)) { print $0, &quot;&#060;-- quantity is greater than 30&#034; ;}&#039;  food_list.txt
&lt;pre&gt;
No      Item_Name               Quantity        Price
1       Mangoes                    45           $3.45 &#060;-- quantity is greater than 30
2       Apples                     25           $2.45 &#060;-- quantity is less than or equal to 30
3       Pineapples                 5            $4.45 &#060;-- quantity is less than or equal to 30
4       Tomatoes                   25           $3.45 &#060;-- quantity is less than or equal to 30
5       Onions                     15           $1.45 &#060;-- quantity is less than or equal to 30
6       Bananas                    30           $3.45 &#060;-- quantity is less than or equal to 30
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/comparison-operators-in-awk/comment-page-1/#comment-976231">Aaron Kili</a>.</p>
<p>My try script, while the output is good however I do feel it&#8217;s a bit redundant particularly checking <strong>($3 ~ /^[0-9]/)</strong> twice. Please simply :)</p>
<p>$ awk &#8216;($3 ~ &#8220;^[a-zA-Z]&#8221;) { print $0}  (($3 ~ /^[0-9]/) &amp;&amp; ($3 &lt;= 30)) { print $0,&quot; 30)) { print $0, &#8220;&lt;&#8211; quantity is greater than 30&quot; ;}&#039;  food_list.txt</p>
<pre>
No      Item_Name               Quantity        Price
1       Mangoes                    45           $3.45 &lt;-- quantity is greater than 30
2       Apples                     25           $2.45 &lt;-- quantity is less than or equal to 30
3       Pineapples                 5            $4.45 &lt;-- quantity is less than or equal to 30
4       Tomatoes                   25           $3.45 &lt;-- quantity is less than or equal to 30
5       Onions                     15           $1.45 &lt;-- quantity is less than or equal to 30
6       Bananas                    30           $3.45 &lt;-- quantity is less than or equal to 30
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aaron Kili		</title>
		<link>https://www.tecmint.com/comparison-operators-in-awk/comment-page-1/#comment-976231</link>

		<dc:creator><![CDATA[Aaron Kili]]></dc:creator>
		<pubDate>Fri, 16 Mar 2018 07:45:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=20847#comment-976231</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/comparison-operators-in-awk/comment-page-1/#comment-976218&quot;&gt;Dan&lt;/a&gt;.

@Dan

Sure, you can modify it for that purpose and share it with us.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/comparison-operators-in-awk/comment-page-1/#comment-976218">Dan</a>.</p>
<p>@Dan</p>
<p>Sure, you can modify it for that purpose and share it with us.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
