Script Help

From: Hackett, Peter (PHackett@talisman-energy.com)
Date: Thu Aug 21 2003 - 17:27:48 EDT


I have a script which generates output similar to this and simply emails me
whenever it sees "not running". What I'd like to do is filter this to show
me only the server which is down.
 
Essentially, I'd like to turn this:
 
Connection point: /someserver1
    Server State: running
Connection point: /someserver5
    Server State: running
Connection point: /someserver7
    Server State: not running
 
into a one liner like this:
 
    Connection point: /someserver7 Server State: not running
 
or even just:
 
    /someserver7
 
I'm trying to achieve this using just sed or awk statements fed with a pipe.
 
Any thoughts appreciated.
 
Pete
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:58 EDT