tcp_iperf_stats.awk 328 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
BEGIN{max=0;min=10000}
{
    if ($0 ~/Mbits/) {
        split($0,a,"MBytes")
        split(a[2],b)
        if (b[1]>max) {
            max=b[1]
        }
        if (b[1]<min) {
            min=b[1]
        }
     }
}
END{print "Avg Bitrate : " b[1] " Mbits/sec Max Bitrate : " max " Mbits/sec Min Bitrate : " min " Mbits/sec"}