I need help writing a batch file that will look at a text file where each row contains a range of numbers, and looks to see if the next line's numbers are included in the previous. If it is, it would check to see if it fits completely within the previous range, or partially. It would then expand the range to the largest number.
An example is probably the best way to explain.
If I have a text file that contains:
The end result I'm looking for is:
I'm new to writing batch files, and I cannot, for the life of me, figure out how to accomplish this.
Any help or suggestions would be greatly appreciated!!