title: How can I get the last number from string in bash?
body: <p>Sorry, I'll explain it better</p>
  
  <p>How can I get the last number from string?</p>
  
  <p>Examples of generics strings:</p>
  
  <pre><code>If str=str1s2
  echo $str | cmd? 
  I get 2
  
  If str=234ef85
  echo $str | cmd? 
  I get 85
  
   If str=djfs1d2.3
  echo $str | cmd? 
  I get 3
  </code></pre>
  
  <p>"cmd?" is the command/script that I want </p>