I am using cygwin and have some experience writing scripts, using grep. it gave me the possibility to find some particular strings in huge logfiles. Now I am facing a next challenge, but don't know how to solve it. Basically I want to check a number in a file, with the same number in a previous line. Consider the following file:
the 2nd column in this message is a relative time in milliseconds.
I want to check the differences with the previous value. I want to display the occurences, where the differences are greater than 50msec (717 - 667 > 50)
Anyone knows how to do this? The way I have used grep is filter a complete file in a hole. It is great and powerfull, but now I can't use it here.