<?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: 6 Deprecated Linux Commands and Alternative Tools You Should Use	</title>
	<atom:link href="https://www.tecmint.com/deprecated-linux-commands/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/deprecated-linux-commands/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Mon, 11 Dec 2023 04:06:38 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/deprecated-linux-commands/comment-page-1/#comment-2113316</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Mon, 11 Dec 2023 04:06:38 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=49264#comment-2113316</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/deprecated-linux-commands/comment-page-1/#comment-2113287&quot;&gt;Ron Hunt&lt;/a&gt;.

@Ron,

I understand your concern about the difference in behavior between &lt;strong&gt;egrep&lt;/strong&gt; and &lt;strong&gt;grep -E&lt;/strong&gt; when matching strings with spaces in &lt;strong&gt;RHEL 7&lt;/strong&gt; and &lt;strong&gt;RHEL 9.3&lt;/strong&gt;. You&#039;re correct that the deprecated &lt;strong&gt;egrep&lt;/strong&gt; command in &lt;strong&gt;RHEL 7&lt;/strong&gt; treats spaces as part of the pattern, while &lt;strong&gt;grep -E&lt;/strong&gt; in &lt;strong&gt;RHEL 9.3&lt;/strong&gt; does not.

Here&#039;s a breakdown of the situation:

In &lt;strong&gt;RHEL 7&lt;/strong&gt;, the following command will match the string &quot;&lt;strong&gt;text1 text2&lt;/strong&gt;&quot; because egrep considers spaces within the quoted pattern as part of the pattern itself.
&lt;pre&gt;
egrep &quot;text1 text2&quot;
&lt;/pre&gt;
In &lt;strong&gt;RHEL 9.3&lt;/strong&gt;, the following command is deprecated and might behave differently depending on the specific implementation. 
&lt;pre&gt;
egrep &quot;text1 text2&quot;
&lt;/pre&gt;
The following command uses the extended regular expressions mode but does not consider spaces inside the quoted pattern as part of the pattern. Therefore, it won&#039;t match the string &quot;&lt;strong&gt;text1 text2&lt;/strong&gt;&quot;.
&lt;pre&gt;
grep -E &quot;text1 text2&quot;
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/deprecated-linux-commands/comment-page-1/#comment-2113287">Ron Hunt</a>.</p>
<p>@Ron,</p>
<p>I understand your concern about the difference in behavior between <strong>egrep</strong> and <strong>grep -E</strong> when matching strings with spaces in <strong>RHEL 7</strong> and <strong>RHEL 9.3</strong>. You&#8217;re correct that the deprecated <strong>egrep</strong> command in <strong>RHEL 7</strong> treats spaces as part of the pattern, while <strong>grep -E</strong> in <strong>RHEL 9.3</strong> does not.</p>
<p>Here&#8217;s a breakdown of the situation:</p>
<p>In <strong>RHEL 7</strong>, the following command will match the string &#8220;<strong>text1 text2</strong>&#8221; because egrep considers spaces within the quoted pattern as part of the pattern itself.</p>
<pre>
egrep "text1 text2"
</pre>
<p>In <strong>RHEL 9.3</strong>, the following command is deprecated and might behave differently depending on the specific implementation. </p>
<pre>
egrep "text1 text2"
</pre>
<p>The following command uses the extended regular expressions mode but does not consider spaces inside the quoted pattern as part of the pattern. Therefore, it won&#8217;t match the string &#8220;<strong>text1 text2</strong>&#8220;.</p>
<pre>
grep -E "text1 text2"
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ron Hunt		</title>
		<link>https://www.tecmint.com/deprecated-linux-commands/comment-page-1/#comment-2113287</link>

		<dc:creator><![CDATA[Ron Hunt]]></dc:creator>
		<pubDate>Mon, 11 Dec 2023 02:45:58 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=49264#comment-2113287</guid>

					<description><![CDATA[I am involved with an upgrade from RHEL 7 to RHEL 9.3.  We have many ksh scripts that use &lt;strong&gt;egrep&lt;/strong&gt;. I have read the articles saying that &quot;&lt;strong&gt;egrep&lt;/strong&gt;&quot; is deprecated and use &quot;&lt;strong&gt;grep -E&lt;/strong&gt;&quot; instead. However I have done numerous tests under 9.3 and &quot;&lt;strong&gt;grep -E&lt;/strong&gt;&quot; does not behave the same as &quot;&lt;strong&gt;egrep&lt;/strong&gt;&quot; on RHEL 7.

On RHEL 7, for example: &lt;strong&gt;egrep &quot;text1 text2&quot;&lt;/strong&gt; works &lt;code&gt;--&lt;/code&gt; the string including a space character is successfully matched. But with RHEL 9.3 I cannot get &quot;&lt;strong&gt;egrep&lt;/strong&gt;&quot; or &quot;&lt;strong&gt;grep -E&lt;/strong&gt;&quot; to match that string.]]></description>
			<content:encoded><![CDATA[<p>I am involved with an upgrade from RHEL 7 to RHEL 9.3.  We have many ksh scripts that use <strong>egrep</strong>. I have read the articles saying that &#8220;<strong>egrep</strong>&#8221; is deprecated and use &#8220;<strong>grep -E</strong>&#8221; instead. However I have done numerous tests under 9.3 and &#8220;<strong>grep -E</strong>&#8221; does not behave the same as &#8220;<strong>egrep</strong>&#8221; on RHEL 7.</p>
<p>On RHEL 7, for example: <strong>egrep &#8220;text1 text2&#8221;</strong> works <code>--</code> the string including a space character is successfully matched. But with RHEL 9.3 I cannot get &#8220;<strong>egrep</strong>&#8221; or &#8220;<strong>grep -E</strong>&#8221; to match that string.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
