I would like to compare the values of 2nd column of consecutive lines of same file in such a way so that if the difference between first value and second value is more than 100 it should print complete line else ignore line.
Input File
PDB 2500
RTDB 123
RTDB-EAGLE 122
VSCCP 2565
Desired Output:
PDB 2500 (i.e. difference between 2500 and 123 is greater than 100 here)
RTDB-EAGLE 122 (i.e. difference between 122 and 2565 is greater than 100 here)
Thanks..