Help splitting individual mibs
Howdy,
I have a master list of mibs in a text file. This text file contains all mibs that are being used on a NMS. It is in the following format:
DMTF-DMI-MIB DEFINITIONS ::= BEGIN
...
...
END
Anothermib ::= BEGIN
...
...
...
END
Where the DMTF-DMI-MIB is the name of the mib and the BEGIN signifies the start of the mib and likewise, end signifies the end of the mib. I would like to split this back out into their own files. How can i select only the lines between BEGIN and END while also spitting it out into the correct file name?
|