title: Toggle HPC Jobs
body: <p>I'm trying to find a covenient way to peek through the jobs I have submited on an HPC system. Currently, I have the function</p>
  <pre class="lang-sh prettyprint-override"><code>peek() {ccc_mpeek &quot;$1&quot; | less;}
  </code></pre>
  <p>defined in my <code>.bashrc</code>, where <code>ccc_mpeek</code> is an HPC specific function to see the output file of a running job and the <code>$1</code> argument is the JOBID.</p>
  <p>However, this is still a little incovenient, since I have to manually copy and paste the JOBID (7 digits) when I want to run the function above.</p>
  <p>I'm looking for a way in which I can <strong>toggle through JOBID's</strong> as the argument to the previous function, based on the output of the <code>squeue -u user_name</code>, which has the following header:</p>
  <pre><code>         JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)
  </code></pre>