title: Printing all matches in a line using regular expression in awk
body: <p>Say i have a line:</p>
  
  <p>Terminal="123" Pwd="567"</p>
  
  <p>I want to select only number portion using awk</p>
  
  <pre><code>awk 'match($1, /[0-9]+/){print substr($1, RSTART, RLENGTH)};match($2, /[0-9]+/){print   
  substr($2, RSTART, RLENGTH)}' file
  </code></pre>
  
  <p>This gives the desired result.</p>
  
  <p>123 567.</p>
  
  <p>However there must be other better way to select both numbers without writing two match statements.</p>
  
  <p>Thanks.</p>