<?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 Awk for Text Filtering with Pattern-Specific Actions &#8211; Part 3	</title>
	<atom:link href="https://www.tecmint.com/awk-filter-text-or-string-using-patterns/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/awk-filter-text-or-string-using-patterns/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Mon, 12 Aug 2024 06:43:35 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: anonymous boi		</title>
		<link>https://www.tecmint.com/awk-filter-text-or-string-using-patterns/comment-page-1/#comment-2182444</link>

		<dc:creator><![CDATA[anonymous boi]]></dc:creator>
		<pubDate>Thu, 20 Jun 2024 15:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=20346#comment-2182444</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/awk-filter-text-or-string-using-patterns/comment-page-1/#comment-1348671&quot;&gt;Anonymous&lt;/a&gt;.

You should start from Part 1, which explains all the symbols and concepts. Also, experiment with the code yourself.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/awk-filter-text-or-string-using-patterns/comment-page-1/#comment-1348671">Anonymous</a>.</p>
<p>You should start from Part 1, which explains all the symbols and concepts. Also, experiment with the code yourself.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: anonymous boi		</title>
		<link>https://www.tecmint.com/awk-filter-text-or-string-using-patterns/comment-page-1/#comment-2182443</link>

		<dc:creator><![CDATA[anonymous boi]]></dc:creator>
		<pubDate>Thu, 20 Jun 2024 15:43:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=20346#comment-2182443</guid>

					<description><![CDATA[Check the first tutorial; it covers the basics.]]></description>
			<content:encoded><![CDATA[<p>Check the first tutorial; it covers the basics.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: YueliangGu		</title>
		<link>https://www.tecmint.com/awk-filter-text-or-string-using-patterns/comment-page-1/#comment-1847100</link>

		<dc:creator><![CDATA[YueliangGu]]></dc:creator>
		<pubDate>Mon, 18 Jul 2022 00:31:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=20346#comment-1847100</guid>

					<description><![CDATA[I found that it should use &lt;code&gt;.*&lt;/code&gt; pattern to match all the characters before the &lt;code&gt;$&lt;/code&gt; character:

&lt;code&gt;[root@telecom exer]# awk &#039;/.*\$[2-9]\.[0-9][0-9]/  { print $1, $2, $3, $4, &quot;*&quot; ;} /.*\$[0-1]\.[0-9][0-9]/ {print ;}&#039; food_prices.txt&lt;/code&gt;
&lt;pre&gt;
1 Mangoes 10 $2.45 *
2       Apples                     20           $1.50
3       Bananas                    5            $0.90
4 Pineapples 10 $3.46 *
5       Oranges                    10           $0.78
6       Tomatoes                   5            $0.55
7       Onions                     5            $0.45
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>I found that it should use <code>.*</code> pattern to match all the characters before the <code>$</code> character:</p>
<p><code>[root@telecom exer]# awk '/.*\$[2-9]\.[0-9][0-9]/  { print $1, $2, $3, $4, "*" ;} /.*\$[0-1]\.[0-9][0-9]/ {print ;}' food_prices.txt</code></p>
<pre>
1 Mangoes 10 $2.45 *
2       Apples                     20           $1.50
3       Bananas                    5            $0.90
4 Pineapples 10 $3.46 *
5       Oranges                    10           $0.78
6       Tomatoes                   5            $0.55
7       Onions                     5            $0.45
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: skittle		</title>
		<link>https://www.tecmint.com/awk-filter-text-or-string-using-patterns/comment-page-1/#comment-1793975</link>

		<dc:creator><![CDATA[skittle]]></dc:creator>
		<pubDate>Fri, 13 May 2022 08:40:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=20346#comment-1793975</guid>

					<description><![CDATA[What are the &lt;code&gt;*&#039;s&lt;/code&gt; for in the expressions? For example in:

&lt;code&gt;$ awk &#039;/ *$[2-9]\.[0-9][0-9] */ { print $1, $2, $3, $4, &quot;*&quot; ; } / *$[0-1]\.[0-9][0-9] */ { print ; }&#039; food_prices.list&lt;/code&gt;

What is the &lt;code&gt;*&lt;/code&gt; before the &lt;code&gt;$&lt;/code&gt; and the &lt;code&gt;*&lt;/code&gt; before the &lt;code&gt;/&lt;/code&gt; for?]]></description>
			<content:encoded><![CDATA[<p>What are the <code>*'s</code> for in the expressions? For example in:</p>
<p><code>$ awk '/ *$[2-9]\.[0-9][0-9] */ { print $1, $2, $3, $4, "*" ; } / *$[0-1]\.[0-9][0-9] */ { print ; }' food_prices.list</code></p>
<p>What is the <code>*</code> before the <code>$</code> and the <code>*</code> before the <code>/</code> for?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Anonymous		</title>
		<link>https://www.tecmint.com/awk-filter-text-or-string-using-patterns/comment-page-1/#comment-1348671</link>

		<dc:creator><![CDATA[Anonymous]]></dc:creator>
		<pubDate>Wed, 29 Jul 2020 02:05:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=20346#comment-1348671</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/awk-filter-text-or-string-using-patterns/comment-page-1/#comment-843768&quot;&gt;lethargos&lt;/a&gt;.

I know this is really late but I agree with you, I can&#039;t find a good tutorial site that doesn&#039;t just throw a bunch of code in your face and expect you to understand it.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/awk-filter-text-or-string-using-patterns/comment-page-1/#comment-843768">lethargos</a>.</p>
<p>I know this is really late but I agree with you, I can&#8217;t find a good tutorial site that doesn&#8217;t just throw a bunch of code in your face and expect you to understand it.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
