<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.0.0">Jekyll</generator><link href="https://blog.bynilo.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://blog.bynilo.com/" rel="alternate" type="text/html" /><updated>2020-02-05T12:30:59+00:00</updated><id>https://blog.bynilo.com/feed.xml</id><title type="html">Blog - By Nilo</title><subtitle>Just a bunch of blog posts, tutorials and asorted notes about software development, woodworking or anything else I want to talk about.</subtitle><entry><title type="html">Using the Grep command</title><link href="https://blog.bynilo.com/grep/2020/02/05/using-the-grep-command.html" rel="alternate" type="text/html" title="Using the Grep command" /><published>2020-02-05T00:00:00+00:00</published><updated>2020-02-05T00:00:00+00:00</updated><id>https://blog.bynilo.com/grep/2020/02/05/using-the-grep-command</id><content type="html" xml:base="https://blog.bynilo.com/grep/2020/02/05/using-the-grep-command.html">&lt;ul&gt;
  &lt;li&gt;Find all the txt files in the current directory&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;ls&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-1&lt;/span&gt; | &lt;span class=&quot;nb&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;*&lt;/span&gt;.txt
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;Find the text “CustomerID” in an XML file&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;grep &lt;/span&gt;CustomerID sample.XML
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;Find all the ‘git’ commands in your history&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;history&lt;/span&gt; | &lt;span class=&quot;nb&quot;&gt;grep &lt;/span&gt;git
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;Highlight matched patterns&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--color&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'data'&lt;/span&gt; filename
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;Ignore the case when searching for data&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-i&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'Data'&lt;/span&gt; filename
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;Using Perl style Regular Expressions&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-P&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;[&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\d&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;]*&quot;&lt;/span&gt; filename
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is a living document as work and personal projects
require different ways to use Grep and other Linux commands.&lt;/p&gt;</content><author><name></name></author><summary type="html">Find all the txt files in the current directory</summary></entry><entry><title type="html">Hello</title><link href="https://blog.bynilo.com/hello/2020/01/19/hello.html" rel="alternate" type="text/html" title="Hello" /><published>2020-01-19T20:42:24+00:00</published><updated>2020-01-19T20:42:24+00:00</updated><id>https://blog.bynilo.com/hello/2020/01/19/hello</id><content type="html" xml:base="https://blog.bynilo.com/hello/2020/01/19/hello.html">&lt;p&gt;Hello! Every software developer as done at least a hundred of these
“Hello, World!” programs!&lt;/p&gt;

&lt;p&gt;This is my first one on this blog!&lt;/p&gt;

&lt;p&gt;Ok that’s all&lt;/p&gt;</content><author><name></name></author><summary type="html">Hello! Every software developer as done at least a hundred of these “Hello, World!” programs!</summary></entry></feed>