Say I have a file of this format
12:04:21 .3
12:10:21 1.3
12:13:21 1.4
12:14:21 1.3
..and so on
I want to find repeated numbers in the second column for, say, 10 consequent timestamps, thereby finding staleness.
12:04:21 .3
12:10:21 1.3
12:14:21 1.3
12:10:21 1.3
12:14:21 1.3
12:12:21 1.3
12:24:21 1.3
12:30:21 1.3
12:44:21 1.3
12:50:21 1.3
13:04:21 1.3
13:24:21 1.7
should print 12:10:21 through 13:04:21 1.3
and I want to output the beginning and and end of the stale timestamp range
Can someone help me come up with it?
You can use awk, bash
Thanks