<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Grep on </title>
    <link>https://wassimaouadi.com/tags/grep/</link>
    <description>Recent content in Grep on </description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Mon, 08 Jun 2026 21:31:13 +0200</lastBuildDate>
    <atom:link href="https://wassimaouadi.com/tags/grep/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Operations with grep in Linux</title>
      <link>https://wassimaouadi.com/technotes/linuxgrep/</link>
      <pubDate>Mon, 08 Jun 2026 21:31:13 +0200</pubDate>
      <guid>https://wassimaouadi.com/technotes/linuxgrep/</guid>
      <description>&lt;h1 id=&#34;basic-vs-extended-regex-in-grep&#34;&gt;Basic vs extended regex in grep&lt;/h1&gt;&#xA;&lt;p&gt;With basic regex expressions (short BRE), special characters must be preceeded with a backslash if they are to be interpreted as special. Otherwise, they are interpreted as regular characters. The exception to this rule is the carrot character (^). BRE mode is activated with the &lt;code&gt;-e&lt;/code&gt; option.&lt;/p&gt;&#xA;&lt;p&gt;Let us consider a sample file &lt;em&gt;/tmp/test.log&amp;quot;&lt;/em&gt;:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Wassim@linux:/tmp$ cat test.log&#xA;a+b&#xA;a plus b&#xA;aaaaaaaab&#xA;Wassim@linux:/tmp$ &#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Example 1: &lt;code&gt;grep -e&lt;/code&gt; and passing the special characters without a backslash:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
