1*41122Sbostic/^ *[0-9]/ { 2*41122Sbostic # print out the average time to each hop along a route. 3*41122Sbostic tottime = 0; n = 0; 4*41122Sbostic for (f = 5; f <= NF; ++f) { 5*41122Sbostic if ($f == "ms") { 6*41122Sbostic tottime += $(f - 1) 7*41122Sbostic ++n 8*41122Sbostic } 9*41122Sbostic } 10*41122Sbostic if (n > 0) 11*41122Sbostic print $1, tottime/n, median 12*41122Sbostic} 13