<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Grep on Raveen Kumar</title>
    <link>https://raveenkumar.com/tags/grep/</link>
    <description>Recent content in Grep on Raveen Kumar</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>Raveen Kumar</copyright>
    <lastBuildDate>Tue, 09 May 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://raveenkumar.com/tags/grep/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Grep for files that does not contain a specific string</title>
      <link>https://raveenkumar.com/posts/2023-05-09-grep-for-files-that-does-not-contain-a-specific-string/</link>
      <pubDate>Tue, 09 May 2023 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/posts/2023-05-09-grep-for-files-that-does-not-contain-a-specific-string/</guid>
      <description>&lt;p&gt;Another useful way to use grep is for printing file names that do not contain a specific string, for example&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;grep -L &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;string&amp;#34;&lt;/span&gt; *&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You can use the &lt;code&gt;-L&lt;/code&gt; option of the &lt;code&gt;grep&lt;/code&gt; command, which prints the names of all files that do not contain the specified search string.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;*&lt;/code&gt; at the end tells &lt;code&gt;grep&lt;/code&gt; to search all files in the current directory. If you want to search only specific files or directories, you can replace the &lt;code&gt;*&lt;/code&gt; with the filenames or directory names.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Recursively grep with emacs lisp only</title>
      <link>https://raveenkumar.com/posts/2023-02-20-recursive-grep-with-emacs-lisp-only/</link>
      <pubDate>Mon, 20 Feb 2023 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/posts/2023-02-20-recursive-grep-with-emacs-lisp-only/</guid>
      <description>&lt;p&gt;I was looking for a way to recursively grep inside a directory and a find-grep replacement since its not availabe in windows and I found this.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://www.reddit.com/r/emacs/comments/bxtwfg/grep_and_find_but_in_pure_emacs_lisp/&#34;&gt;https://www.reddit.com/r/emacs/comments/bxtwfg/grep_and_find_but_in_pure_emacs_lisp/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-lisp&#34; data-lang=&#34;lisp&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;(project-find-regexp)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
  </channel>
</rss>
