title: Print output of two commands in one line
body: <p>I'm got this working:</p>
  
  <pre><code>while sleep 5s
   do
    lscpu | grep 'CPU MHz:' | cut -d ':' -f 2 | awk '{$1=$1};1' &amp;&amp; grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage "%"}'
  done
  </code></pre>
  
  <p>And it gives me the following output:</p>
  
  <pre><code>1601.058
  3.4811%
  1452.514
  3.48059%
  1993.800
  3.48006%
  2085.585
  3.47955%
  2757.776
  3.47902%
  1370.237
  3.47851%
  1497.903
  3.47798%
  </code></pre>
  
  <p>But I'd really like to get the two values onto a single line. Every time I try to do this I run into a double / single quote variable issue. Granted I pulled some of this awk stuff from online so I'm not really up to speed on that. I just want to print per line, CPU clock and load ever 5 seconds.</p>
  
  <p>Can you help me find a better way to do that?</p>