title: Limit the output of the TOP command to a specific process name
body: <p>If you call the top command, you get all the running processes. But how can I <em>limit</em> the output only <em>to a certain process name like "java"</em>?</p>
  
  <p>I've tried this 
   <strong>top -l 2 | grep java</strong>
  but in this way you get only snapshots and not a continuously updated list. And <strong>top -l 0 | grep java</strong> is not really clear.</p>