From a log file on an AIX server, i need to get an extract as per below
File:
bla
bla
************
bla
UniqIdentifier
bla
UniqIdentifier
bla
************
bla
bla
bla
I need to retrieve
************
bla
UniqIdentifier
bla
UniqIdentifier
bla
************
Note: UniqIdentifier is initially used to go to the concerned part of the log file.
The objective is that this could be achieved in vi or using unix tools like AWK, GREP etc.
The pattern ************ is a delimiter in the log file, so for every UniqIdentifier we have the pattern. The idea here is to first locate the UniqIdentifier and from there look for the pattern ************ upward and from there go to the next ************ downward.