Grep Syntax / Logic

2 views
Skip to first unread message

Manish Ravlani

unread,
Mar 6, 2015, 6:55:06 PM3/6/15
to skolix-wls6, skolix123
Guys,

I need some help from anyone good at shell.
I tried a lot - but couldn't come up with some logic.
Basically, I have a shell script that appends output of all commands to a log file - that log file looks like below:
Now, from this, I am trying to find out which is the GUI for which MessageCount is not 0 from same shell script and later, invoke some twiddle command for the same GUI.
Any help would be appreciated.
Thanks guys!

----------------------------------------------------------
There is at least 1 GUI in where messages are not get processed
Please check current queue depth from below list of GUI
Local Date & Time : Fri Mar  6 15:17:05 PST 2015
----------------------------------------------------------
GUI: GUI1_TEST
Queue: jms.queue.abcd.to.efgh
MessageCount=3
----------------------------------------------------------
GUI: GUI2_TEST
Queue: jms.queue.abcd.to.efgh
MessageCount=0
----------------------------------------------------------
GUI: GUI3_TEST
Queue:jms.queue.abcd.to.efgh
MessageCount=0
----------------------------------------------------------


--
Thanks

Manish Ravlani

unread,
Mar 6, 2015, 7:06:44 PM3/6/15
to skolix-wls6, skolix123

Thanks Krishna.
But, basically, I am trying to find what is the GUI for which MessageCount is more then 0.

Thanks
Manish Ravlani
1-321-215-5671
1-321-328-7120

On Mar 6, 2015 7:01 PM, "Rekha Krishna" <srikri...@gmail.com> wrote:
Manish,

Can you grep with MessageCount=0 and then use split with = sign and then take the right side value to compare whether the value is zero or not.  is that something you see or may be I am missing something?

--
You received this message because you are subscribed to the Google Groups "skolix-wls6" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skolix-wls6...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "skolix-wls6" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skolix-wls6...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages