Hi
I have a file of events that has multiple multi lined events between <event>
and </event>
tags. I want to print out the entire event From <event>
to </event>
only if a line within that event contains either the string uniqueId="1279939300.862594_PFM_1_1912320699" or uniqueId="1281686522.353435_PFM_1_988171542". The file has 100000 events in it and each event has between 20 and 35 lines (attributes within the event vary its length). I started off using sed but need a little help beyond:
cat xmlEventLog_2010-03-23T* | sed -nr "/<event eventTimestamp/,/<\/event>/"
What do I need to do to finish this? Also is sed the best way of doing this given the size of the files?
Thanks in advance
A