Trying to split out a character from a bash "list"
<p>So I have this command that runs the following report in your shell; </p>

<pre><code>Command output 
Available Reports for: isl-01-chi Time Zone: CDT
================================================================================
|ID       |FSA Job Start              |FSA Job End                |Size        |
================================================================================
|313      |Aug 21 2016, 10:00 PM      |Aug 22 2016, 12:33 AM      |1.040G      |
--------------------------------------------------------------------------------
|318      |Aug 22 2016, 10:00 PM      |Aug 23 2016, 12:35 AM      |1.039G      |
--------------------------------------------------------------------------------
|323      |Aug 23 2016, 10:00 PM      |Aug 24 2016, 12:34 AM      |1.045G      |
--------------------------------------------------------------------------------
|328      |Aug 24 2016, 10:00 PM      |Aug 25 2016, 12:35 AM      |1.043G      |
--------------------------------------------------------------------------------
|333      |Aug 25 2016, 10:00 PM      |Aug 26 2016, 12:57 AM      |1.057G      |
--------------------------------------------------------------------------------
|339      |Aug 26 2016, 10:00 PM      |Aug 27 2016, 03:01 AM      |2.183G      |
--------------------------------------------------------------------------------
|346      |Aug 28 2016, 07:24 AM      |Aug 28 2016, 11:53 AM      |2.183G      |
--------------------------------------------------------------------------------
|351      |Aug 28 2016, 10:00 PM      |Aug 29 2016, 02:37 AM      |2.182G      |
================================================================================
</code></pre>

<p>What I'm looking to do is find the latest ID (Greatest number) and was wondering what the easiest method of doing this was in python ?</p>

<p>I think that is better thake the value with shell. </p>

<pre><code>your_command | grep -Eo '^\|[0-9]+'| cut -d "|" -f2 | sort | tail -n1
</code></pre>

python