Hello! I have some log with next format:
CDR_NUM1,CDR_NUM2,CDR_STATION,CDR_TRUNK1,CDR_TRUNK2
71234000000,71235000000,OR_00029,1109,28
72335000000,72337000000,OR_00030,1043,6
75800000000,75900000000,OR_00042,1074,56
And I have this lookup:
LOOK_NUM_START,LOOK_NUM_END,LOOK_STATION_NUM_ID
71200000000,71300000000,OR_00038
72320000000,72360000000,OR_00030
75800000000,75850000000,OR_00051
I need to check if LOOK_NUM_START<CDR_NUM1<LOOK_NUM_END OK, add to search results new column LOOK_STATION_NUM_ID.
How can this be done by eval command?