I got output like that:
0.000
0.002
0.000
0.002
0.000
0.026
=====
0.026
Note, how the last line (0.026) is the endtime of the phases before. I will repeat that command every n seconds and I want that the next output is written to the next column like:
0.000 0.000
0.002 0.001
0.000 0.000
0.002 0.001
0.000 0.000
0.026 0.027
===== =====
0.026 0.028
I know something with sed -i
will solve my problem but I just can't get it work. Since it is very important to have exact same timestamp on this value I cant execute the command followed by the next one and then write the results to their place.
The command that gives me these values is:
curl -w '\nLookup time:\t%{time_namelookup}\nConnect time:\t%{time_connect}\nPreXfer time:\t%{time_pretransfer}\nStartXfer time:\t%{time_starttransfer}\n\nTotal time:\t%{time_total}\n' -o /dev/null -s http://linux.com/