Chapter 16 -------------------------------------- /^ *[0-9]/ { trottime = 0; attempts = 0; for (field = 5; field <= NF; ++field) { if ($field == “ms”) { trottime = $(field - 1) + trottime attempts = attempts + 1 } } if (attempts > 0) { average = trottime/attempts printf “Point: “ $2 “, Average Latency: “ average “\n” } } --------------------------------------