***** BEGIN 123 *****
BASH is awesome
***** END *****
***** BEGIN 365 *****
KSH is awesome
***** END *****
***** BEGIN 157 *****
KSH is awesome
***** END *****
***** BEGIN 7123 *****
C is awesome
***** END *****
I am trying to find all the lines in between BEGIN and END but having KSH is awesome
I was using awk '/BEGIN/,/END/' MyFileName
but it is giving me all the content. How do i extract only below 2, kind of having clause between the 2 strings.
***** BEGIN 365 *****
KSH is awesome
***** END *****
***** BEGIN 157 *****
KSH is awesome
***** END *****
Yes I was aware of the mistake, however by the time that I went in to rectify it -Madein Germany had posted two solutions, which is why I updated the post the way I did.