Skip to main content
3 of 5
Rollback to Revision 1 - Please help

Linux command required to check

have a data in below format, where first line lower and upper value are same but in next line lower and upper are in range i.e. starting from 73760 to 73796. I need where I can get the count of all such lines where lower and upper value are same. on the other hand line count of all such lines where the data lower and upper are in range in addition to expansion count of the range data i.e.

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