I have a log of following format
<<
[ABC] some other data
some other data
>>
<<
DEF some other data
some other data
>>
<<
[ABC] some other data
some other data
>>
I wanted to select all logs which are having ABC expected result is
<<
[ABC] some other data
some other data
>>
<<
[ABC] some other data
some other data
>>
What will the expression for sed command ? For fetching contents b/w << >> expression will be
sed -e '/<</,/>>/!d'
But how can I force it to have [ABC] in b/w