5500 5700
5600 5800
5700 5800
5600 5900
5900 6100
5900 6100
5900 6100
5800 6000
5800 6100
5900 6100
5800 6200
5700 5800
I have a file with two columns as above. I need to find out min of every two rows in the first column and max of every two rows in the second column.How can it be achieved using awk? Desired output would be
Min Max
5500 5800
5600 5900
5900 6100
5800 6100
5800 6100
5700 6200