title: AIX Bash Compare datetime strings
body: <p>I have two log files. </p>
  
  <p>Log File "Out":</p>
  
  <ul>
  <li>One records a remote "request"</li>
  <li>Many lines, only worth tracking starts with TRX</li>
  <li><code>TRX Sent: 02-000330408-01 Type: N Timestamp: 20130322-11474100</code></li>
  </ul>
  
  <p>Log File "Get":</p>
  
  <ul>
  <li>Records the "response"</li>
  <li>Many lines, only one worth tracking starts with PROC</li>
  <li><code>PROC: 02-000330408-01 T/S: 20130322 11474500</code></li>
  </ul>
  
  <p>If you notice the examples, the timestamp differences should be minimal. The issue is that sometimes the remote stops responding.</p>
  
  <p>I'm getting better at bash, but I'm at a loss for a good way to compare the two time-stamps. Basically what I'm looking for is:</p>
  
  <pre><code>if DateDiff(TRX and PROC) &gt; 15 minutes: Do Something Amazing
  </code></pre>