Please help me to delete particular block in a file.
input is like ,
<section_begin> a01
dfasd
adfa
<section_end>
<section_begin> a02
..
eld
...
1 error reported
...
<section_end>
<section_begin> a03
qwre
adfa
<section_end>
I want to remove the particular block
<section_begin> a02
..
search_string
...
<section_end>
the below command returns first section also.
perl -ne 'print if /<section_begin>/../eld/' a1exp