title: Shell script program to Extract part of time stamp in message.log file
body: <p>I have data like below in v<code>ar/log/messages.log</code> now I need to search WAM data line and Exrtract only part of time stamp </p>
  
  <p>For Example</p>
  
  <pre><code>2013-07-09T02:22:28.535639Z [24] user.info WebAppMgr WAM APPLAUNCH_INITIATED
  </code></pre>
  
  <p>Above line contains <code>WAM</code>, I need only <code>22:28.535639Z</code> data in messages.log</p>
  
  <pre><code>2013-07-09T02:22:28.535639Z [24] user.info WebAppMgr WAM APPLAUNCH_INITIATED 
  2013-07-09T02:22:21.817372Z [17] user.info sam SAM  ^Icom.palm.app.calculator
  2013-07-09T02:22:21.818442Z [17] user.info sam SAM  ^Icom.palm.app.settings
  2013-07-09T02:24:04.738067Z [120] user.info WebAppMgr WAM APPLAUNCH_INITIATED 
  2013-07-09T02:22:21.846636Z [17] user.info sam SAM  ^Icom.palm.app.notes
  2013-07-09T02:22:21.851727Z [17] user.info sam SAM  ^Icom.palm.app.firstuse
  2013-07-09T02:22:21.854172Z [17] user.info sam SAM  ^Icom.palm.app.isis2
  2013-07-09T02:22:21.863786Z [17] user.info sam SAM  ^Icom.palm.sysapp.voicedial
  2013-07-09T02:24:04.746751Z [120] user.info WebAppMgr WAM APP CREATED WINDOW
  </code></pre>
  
  <p>I am able to extract <code>2013-07-09T02:22:28.535639Z</code>. I need to know how to extract <code>22:28.535639Z</code></p>
  
  <pre><code>#! /bin/sh
  awk '/\ WAM/ {print $1"\t"}' /home/santosh/messages
  </code></pre>
  
  <p>I get output like</p>
  
  <pre><code>2013-07-09T02:22:28.535639Z
  2013-07-09T02:24:04.738067Z
  2013-07-09T02:24:04.746751Z
  </code></pre>
  
  <p>But I Need Only below data </p>
  
  <pre><code>22:28.535639Z
  24:04.738067Z
  24:04.746751Z
  </code></pre>