title: How to grep both header and pattern with grep
body: <p>I need to grep both header and also particular pattern only using grep,</p>
  
  <p>eg </p>
  
  <p>for command "ps"
  output </p>
  
  <pre><code>  PID TTY          TIME CMD
  10280 pts/16   00:00:00 ps
  32463 pts/16   00:00:00 bash 
  </code></pre>
  
  <p>how can i grep both header and pattern like 32463 so output should be </p>
  
  <pre><code>  PID TTY          TIME CMD
  32463 pts/16   00:00:00 bash 
  </code></pre>
  
  <p>And One thing is that solution should be general that means it should be applicable to all commands that have headers</p>