title: Print multiple regex matches using grep on the same line
body: <p>I'm trying to match all digits including integer and decimal using grep, and print the matches on the same line (for easier use to plot using gnuplot). For instance,</p>
  
  <pre><code>echo "bench-100-net-buffering1000.out:Throughput: 3212.97" | grep -E -o '\d+(\.\d+)?'
  </code></pre>
  
  <p>prints</p>
  
  <pre><code>100
  1000
  3212.97
  </code></pre>
  
  <p>but how do I get all that in the same line like the following?</p>
  
  <pre><code>100  1000  3212.97
  </code></pre>
  
  <p><sup>Editor's note: The original form of the question used just <code>\d+</code> as the regex, as reflected in some older answers.</sup></p>
  
  <p>Eventually, I would like it to work with multiple input files given like:</p>
  
  <pre><code>grep Throughput *.out | grep -E -o '\d+(\.\d+)?'
  </code></pre>
  
  <p>should print</p>
  
  <pre><code>100  1000  3212.97
  200  3000  5444.77
  300  5000  6769.32
  </code></pre>