In a file that looks like:
549.432086168 0.0000E+00 9.6988e-04 2.0580E-02 1.0000E+01 9.6988e-04 2.0580E-02 2.0000E+01 9.6988e-04 2.0580E-02 . . . 5.6000E+02 7.0997e-06 -3.7538E-04
Delete the last line if the difference between the number in first line and the first column of last line is greater than 10. So, in this case the last line will get deleted since
560 - 549.432086168 is greater than 10.
Any suggestions as to how can this be done efficiently?