title: How to take only numbers in file by Shell script
body: <p>My problem is to find persons attendance , but he has given his date twice with wrong patterns as <strong>jul22</strong>, <strong>22jul</strong>.  I want to prove that both are same.</p>
  
  <p>The <strong><em>attendF</em></strong>  file data looks like -</p>
  
  <pre><code>PersonsName,month
  sriram,jul22 
  sriram,22jul 
  </code></pre>
  
  <p>My idea: first I take the pattern for the months he given in a <strong>attendF</strong> file<br>
   <code>#grep -i "personName" attendF | cut -t"," -k2,2 &gt; mnthFile</code> </p>
  
  <p><em><strong>mnthFile</strong></em> has data like: </p>
  
  <pre><code> jul22
   jul23
   22jul
   jul24
   23 jul
  </code></pre>
  
  <p>I want output to be: <br>
   jul22<br>
   jul23 <br>
   jul24 <br>
     (or)<br>
   22jul<br>
   23 jul<br>
   jul24<br>
  there by I can get his correct attendance.</p>