title: Remove lines containing non-numeric entries in bash
body: <p>I have a sample data file (sample.log) that has entries </p>
  
  <pre><code>0.0262
  0.0262
  0.7634
  5.7262
  0.abc02
  </code></pre>
  
  <p>I need to filter out the lines that contain non-numeric data, in the above lines, the last entry.</p>
  
  <p>I tried this </p>
  
  <pre><code>sed 's/[^0-9]//g' sample.log
  </code></pre>
  
  <p>It removes the non-numeric line but also removes the decimal values, the output  I get is </p>
  
  <pre><code>00262
  00262
  07634
  57262
  </code></pre>
  
  <p>How can I get the original values retained after eliminating the non-numeric lines. Can I use tr or awk</p>