I want search for a string and  to pull all the lines between two patterns(including the pattern).START#1Name S101Frankfurt_1_119A+StreetENDSTART#2Name B104Berlin20A+StreetENDSTART#100Name C107Berlin21A+StreetENDSTART#24Name D110Frankfurt_1_121A+ENDIf I grep FrankfurtThen it has to display all the lines between START and END(including START AND END) like :START#1Name S101Frankfurt_1_119A+StreetENDSTART#24Name D110Frankfurt_1_121A+StreetENDCommand which I used :cat file | awk '/START/,/END/' | grep -p FrankfurtBut it didn't work.
I want search for a string and to pull all the lines between two patterns
shell;awk;sed;perl;aix