hello all!
first timer in using awk so please be patient with me
I have a single file which contains the following text:
2014/09/25 11:53:43:6978883 Request:
2014/09/25 11:53:43:7135138 Response:
2:<response_name>:some_more_text
=================================================
2014/09/25 11:53:44:6978883 Request:
2014/09/25 11:53:45:7135138 Response:
2:<response_name>:some_more_text
=================================================
2014/09/25 11:53:46:6978883 Request:
2014/09/25 11:53:46:7135138 Response:
2:<response_name>:some_more_text
=================================================
and so on...
what I need to do is count how much time passed between "Request:" and "Response:" for each <response_name>, display this time in milliseconds and display the <response_name> as well. for example it should look like this:
<response_name>: 1135138
=================================================
<response_name>: 1098838
=================================================
<response_name>: 98000
=================================================
and so on...
I appreciate the help!
thx, Cubik
first timer in using awk so please be patient with me
I have a single file which contains the following text:
2014/09/25 11:53:43:6978883 Request:
2014/09/25 11:53:43:7135138 Response:
2:<response_name>:some_more_text
=================================================
2014/09/25 11:53:44:6978883 Request:
2014/09/25 11:53:45:7135138 Response:
2:<response_name>:some_more_text
=================================================
2014/09/25 11:53:46:6978883 Request:
2014/09/25 11:53:46:7135138 Response:
2:<response_name>:some_more_text
=================================================
and so on...
what I need to do is count how much time passed between "Request:" and "Response:" for each <response_name>, display this time in milliseconds and display the <response_name> as well. for example it should look like this:
<response_name>: 1135138
=================================================
<response_name>: 1098838
=================================================
<response_name>: 98000
=================================================
and so on...
I appreciate the help!
thx, Cubik