title: filter each line of linux bash output by regexp
body: <p>I want to filter the output of arbitrary output e.g. <code>cat</code> or <code>objdump</code> to only display lines which contain "pattern". </p>
  
  <p>Is there a one-liner UNIX/Linux command to do this?</p>
  
  <p>e.g. <code>cat filepath | xargs grep 'pattern' -l</code> is not working for me</p>