title: BASH: Find number in text -> variable
body: <p>I need little help from the community: </p>
  
  <p>I have these two lines in a large text file:</p>
  
  <pre><code>Connected clients: 42  
  4 ACTIVE CLIENTS IN LAST 20 SECONDS  
  </code></pre>
  
  <p>How I can find, extract and assign the numbers to variables?</p>
  
  <pre><code>clients=42
  active=4
  </code></pre>
  
  <p>SED, AWK, GREP? Which one should I use?</p>