I have a list of hexadecimal number. I would like to check whether they are in sequence or not. That is, they should be consecutive numbers, in increasing order. In other words, there should be an increment of 1 from each line to the next.
Sample list of hexadecimal numbers:
85AF
85B0
85B1
85B2
85B3
85B4
85B5
85B6
85B7
85B8
85B9
85BA
85BB
85BC
85BD
85BE
85BF
85C0
In reality I would have more than 500 numbers to check through.
Desired output:
All numbers are in sequence
(or)
Numbers are not in sequence.
This is on Solaris, with ksh.