Suposição: Para cada linha contendo EVT_ISDN_SETUP
, há uma linha contendo o padrão Disconnect
.
Deixe-me colar o algoritmo:
Get the time field for the line matching 'EVT_ISDN_SETUP' pattern and put it to temp1 file
Get the time field for the line matching 'Disconnect'pattern and put it to another file say temp2.
Using paste command put the content of both the files to another file say temp3.
Read every line of the temp3 and pass first & 2nd field your perl script .