title: How to extract data from a file
body: <p>Hey everyone, I have a file with info like the below. I want to extract the numbers out of the records. Can some one give me an awk or a sed oneliner if possible? Maybe out put to a file? This would really help me out. I am on ubuntu so I have linux utilities. </p>
  
  <p>Thanks a lot.</p>
  
  <pre><code>&lt;product_id&gt;101747&lt;/product_id&gt;
  &lt;product_id&gt;2847549&lt;/product_id&gt;
  &lt;product_id&gt;149833&lt;/product_id&gt;
  &lt;product_id&gt;123380&lt;/product_id&gt;
  &lt;product_id&gt;66334&lt;/product_id&gt;
  &lt;product_id&gt;66475&lt;/product_id&gt;
  &lt;product_id&gt;123387&lt;/product_id&gt;
  &lt;product_id&gt;6266040&lt;/product_id&gt;
  &lt;product_id&gt;3480755&lt;/product_id&gt;
  &lt;product_id&gt;6529572&lt;/product_id&gt;
  &lt;product_id&gt;22852&lt;/product_id&gt;
  </code></pre>