Merge colums/rows? : I have 

> 100 105

> 105 120

> 120 130

I need to make them as

>100 130

That is, merge overlapping rows. Sorry if I'm sounding vague, however I don't know how to describe this situation.

Looking for a Shell script because then I can quickly process the 20 files that I need to work with.