title: Shell searching for a line
body: <p>Hello I have simple file called myfile.txt ,in there there are only 3 lines :</p>
  
  <pre><code>   192.168.20.30
     text123
     192.168.1.1
  </code></pre>
  
  <p>I am trying to grep all IPs in the form number.number.1 I tried with this regex </p>
  
  <pre><code>grep [0-9]*\.[0-9]*\.[1] myfile.txt
  </code></pre>
  
  <p>but it prints the 3 lines,any ideas why,it is supposed to print 192.168.1.1 only</p>