#calculate how many expired packets are delivered to the receiver #from AG's ns ttl trace file BEGIN {expired=0; total=0; N=10000} $2 < 0 {expired++} {total++} END {print (total-expired)/N "\t" expired/N "\t" (N-total)/N}