8

Shell script program to Extract part of time stamp in message.log file

view full story
linux-howto

http://stackoverflow.com – I have data like below in var/log/messages.log now I need to search WAM data line and Exrtract only part of time stamp For Example 2013-07-09T02:22:28.535639Z [24] user.info WebAppMgr WAM APPLAUNCH_INITIATED Above line contains WAM, I need only 22:28.535639Z data in messages.log 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 201 (HowTos)