I have data in the format below, where in the first line, the lower and upper values are the same, but in the next line, the lower and upper values form a range (i.e., from 73760 to 73796). I need to calculate the count of all lines where the lower and upper values are the same, and, on the other hand, the count of all lines where the lower and upper values form a range, along with the expanded count of the range data (i.e., the number of values within the range).
Output as below:
individual data : 1
range data : 1
range expanded : 37 (expansion of 73760 to 73796)
Input data as below:
TMI=012813 FCI=00 low=000654 up=000654 sor=0E
TMI=012813 FCI=00 low=073760 up=073796 sor=0E
TMI=012813 FCI=00 low=093760 up=093796 sor=0E
.