title: extract the first number from a string
body: <p>I want to extract the first number from a given string.  The number is a float but I only need the integers before the decimal.</p>
  
  <p>example:</p>
  
  <pre><code>string1="something34521.32somethingmore3241"
  </code></pre>
  
  <p>Output I want is 34521</p>
  
  <p>What is the easiest way to do this in bash?</p>
  
  <p>Thanks!</p>