title: How to get a list of failed job from SGE
body: <p>How do I get a list of (recently) failed jobs (failed=100 or exit_status=137) from the SGE? From the <strong>qacct</strong> help:</p>
  
  <pre><code>[-j [job_id|job_name|pattern]]    list all [matching] jobs
  </code></pre>
  
  <p>How do I use the pattern? I tried the following, does not work.</p>
  
  <pre><code>qacct  -j failed=100
  </code></pre>