ericpatton
Technical User
Hi, I have a text file with three columns of data: time, latitude, and longitude. I want to check that all the values in the time column increment up only (i.e., 1300, 1301, etc) and report if there are any times out of order in the file. To do this, I thought that I needed to be able to compare field 1 in record n with field 1 in record n-1, then compare field 1 in record n+1 with field 1 in record n, etc. Is there any way to do this in awk?
Thanks,
~ Eric.
Thanks,
~ Eric.