<?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: 20 Linux egrep Command Examples	</title>
	<atom:link href="https://www.tecmint.com/egrep-command-examples/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/egrep-command-examples/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 13 Jul 2023 09:45:01 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Narendra K		</title>
		<link>https://www.tecmint.com/egrep-command-examples/comment-page-1/#comment-1902187</link>

		<dc:creator><![CDATA[Narendra K]]></dc:creator>
		<pubDate>Fri, 21 Oct 2022 11:41:12 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=28553#comment-1902187</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/egrep-command-examples/comment-page-1/#comment-1901405&quot;&gt;dragonmouth&lt;/a&gt;.

@dragonmouth,

By default, the command uses red color for highlighting. However, we can control the behavior using the &lt;code&gt;GREP_COLOR&lt;/code&gt; environment variables. For example, to use the yellow color, we can assign value &lt;strong&gt;33&lt;/strong&gt; to the &lt;code&gt;GREP_COLOR&lt;/code&gt; environment variable:

$ export GREP_COLOR=33

Please refer to https://www.tecmint.com/customize-bash-colors-terminal-prompt-linux/ to know more about colors in bash.

In example 14, the pattern match will succeed for all the files that are present under the dir1 as well as its subdirectories. For example, in the output, we can see that the pattern match succeeded for the file &lt;strong&gt;dir1/dir2/sample.txt&lt;/strong&gt;.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/egrep-command-examples/comment-page-1/#comment-1901405">dragonmouth</a>.</p>
<p>@dragonmouth,</p>
<p>By default, the command uses red color for highlighting. However, we can control the behavior using the <code>GREP_COLOR</code> environment variables. For example, to use the yellow color, we can assign value <strong>33</strong> to the <code>GREP_COLOR</code> environment variable:</p>
<p>$ export GREP_COLOR=33</p>
<p>Please refer to <a target="_blank" href="https://www.tecmint.com/customize-bash-colors-terminal-prompt-linux/" rel="ugc">https://www.tecmint.com/customize-bash-colors-terminal-prompt-linux/</a> to know more about colors in bash.</p>
<p>In example 14, the pattern match will succeed for all the files that are present under the dir1 as well as its subdirectories. For example, in the output, we can see that the pattern match succeeded for the file <strong>dir1/dir2/sample.txt</strong>.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: dragonmouth		</title>
		<link>https://www.tecmint.com/egrep-command-examples/comment-page-1/#comment-1901405</link>

		<dc:creator><![CDATA[dragonmouth]]></dc:creator>
		<pubDate>Wed, 19 Oct 2022 21:00:14 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=28553#comment-1901405</guid>

					<description><![CDATA[Your use of lines longer than the screen width in the &lt;strong&gt;sample.txt&lt;/strong&gt; file is confusing.

&quot;The below command will highlight the text professionals in red color:

$ egrep --color=auto professionals sample.txt&quot;

That command WILL NOT highlight the matched pattern in RED. It will highlight the color that the variable &quot;color&quot; is set to which may or may not be RED.

In Example #14, shouldn&#039;t you specify each directory or use a wild card?  As written, the command will match the pattern only in the dir1 file(s).]]></description>
			<content:encoded><![CDATA[<p>Your use of lines longer than the screen width in the <strong>sample.txt</strong> file is confusing.</p>
<p>&#8220;The below command will highlight the text professionals in red color:</p>
<p>$ egrep &#8211;color=auto professionals sample.txt&#8221;</p>
<p>That command WILL NOT highlight the matched pattern in RED. It will highlight the color that the variable &#8220;color&#8221; is set to which may or may not be RED.</p>
<p>In Example #14, shouldn&#8217;t you specify each directory or use a wild card?  As written, the command will match the pattern only in the dir1 file(s).</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
