title: Capture the progress percentage of curl but without the decimal numbers
body: <p>This question is particularly a regular expression issue.</p>
  <p>I'd like to capture the progress percentage of <code>curl</code> command in <code>bash</code> using <code>grep</code>, but excluding the floating point numbers. The goal is to present these captured values to a <code>dialog</code>'s <code>--gauge</code> option.</p>
  <p>Here's what I've achieved so far:</p>
  <pre><code>$ curl -#LO &quot;http://upload.wikimedia.org/wikipedia/commons/4/4e/Pleiades_large.jpg&quot; 2&gt;&amp;1 | stdbuf -oL tr '\r' '\n' | grep -Eo '[0-9.]*'
  </code></pre>
  <p>The above example command will output something like this:</p>
  <pre><code>3.8
  20.1
  47.1
  93.4
  100.0
  </code></pre>
  <p>But I'm expecting results like this:</p>
  <pre><code>3
  20
  47
  93
  100
  </code></pre>
  <p>I've searched for a regex to this, but I didn't find any good results.</p>
  <p>Any help is greatly appreciated.</p>