I have a set of data looking like this:1   0.12   0.233   0.055   0.736   0.407   0.3410  0.1111  0.4512  0.68I need to split the set of data to massives using the rule that the next value in the first column is bigger than previous one by more than 1, and find the maximum values in the second column for every of the massives.So the outcome in this case would be:1   0.15   0.7312  0.68I tried couple things with NR parameter but apparently didn't succeed.So I will appreciate any help or advice you can give.
Split a set of data to massives and find maximum for each
command line;text processing;awk