title: How to get rid of the headers in a ps command in Mac OS X ?
body: <p>I use a specific ps command namely </p>
  
  <pre><code>ps -p &lt;pid&gt; -o %cpu, %mem
  </code></pre>
  
  <p>which gives me a result like</p>
  
  <pre><code> %CPU %MEM
   15.1 10.0
  </code></pre>
  
  <p>All i want to do is to just print these numbers like 15.1 and 10.0 without the headers. I tried to use the 'cut' . But it seems to work on every line. </p>
  
  <p>i.e     </p>
  
  <pre><code>echo "$(ps -p 747 -o %cpu,%mem)" | cut -c 1-5
  </code></pre>
  
  <p>gives something like</p>
  
  <pre><code> %CPU
    8.0
  </code></pre>
  
  <p>How to get just the numbers without the headers ? </p>