<?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>Coreutil on Raveen Kumar</title>
    <link>https://raveenkumar.com/tags/coreutil/</link>
    <description>Recent content in Coreutil on Raveen Kumar</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>Raveen Kumar</copyright>
    <lastBuildDate>Fri, 12 May 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://raveenkumar.com/tags/coreutil/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>fc fix command or fix previous command</title>
      <link>https://raveenkumar.com/posts/2023-05-12-fc-fix-command-or-fix-previous-command/</link>
      <pubDate>Fri, 12 May 2023 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/posts/2023-05-12-fc-fix-command-or-fix-previous-command/</guid>
      <description>&lt;p&gt;In Bash, &lt;code&gt;fc&lt;/code&gt; stands for &amp;ldquo;fix command&amp;rdquo; and it is a built-in command that allows you to work with the command history. The &lt;code&gt;fc&lt;/code&gt; command provides a way to view, edit, and re-execute commands from your command history.&lt;/p&gt;&#xA;&lt;p&gt;Here are some common uses of the &lt;code&gt;fc&lt;/code&gt; command:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Viewing command history&lt;/strong&gt;: You can use &lt;code&gt;fc -l&lt;/code&gt; or simply &lt;code&gt;fc&lt;/code&gt; to display the list of recently executed commands. By default, it shows the most recent commands with line numbers.&lt;/p&gt;</description>
    </item>
    <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>Periodically run a program and watch the output</title>
      <link>https://raveenkumar.com/posts/2023-05-05-periodically-run-a-program-and-watch-the-output/</link>
      <pubDate>Fri, 05 May 2023 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/posts/2023-05-05-periodically-run-a-program-and-watch-the-output/</guid>
      <description>&lt;h2 id=&#34;watch&#34;&gt;watch&lt;/h2&gt;&#xA;&lt;p&gt;Execute a program periodically, showing output fullscreen&lt;/p&gt;&#xA;&lt;p&gt;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;watch ls&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;alternative - &lt;code&gt;viddy&lt;/code&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
