Hi Friends.
Please have a look at dummy file. I need to extract from this file:
- Counts of event=
- the 2nd coulmn is unique call id of this transaction. Based on that, i have to search for txstatus= .
Note: Values of event, calltype and txstatus can be anything.
I want to print the output something like:
No of event x:
No of event y:
txstatus x:
txstatus y:
In sample record event is callstart. it could be anything. Can i take it as variable and print the samething which is coming in file? similar for txstatus also. I need this to make it more dynamic and avoid hard codings of status etc....
====================
1260413928.455 1bc0c74a-d811-4b63-b602-b8bb044ebef3 event=callstart calltype=Deposit circuitid=0
1260413939.121 1bc0c74a-d811-4b63-b602-b8bb044ebef3 event=txend txid=2 txstatus=success