I have an XML File in below format:
<installer>
<Plugins>
.
.
.
</Plugins>
</installer>
<installer>
<Plugins>
.
.
.
</Plugins>
</installer>
So, as you can see there are 2 parts here i.e. 2 installer blocks. I want to segregate and redirect the first installers part to Test1.xml file and second installers part to Test2.xml.
I know to achieve the same using a for loop. But, please provide me any solution using sed/awk for faster processing.