I would like to use awk to run output (throughput, delay and packet loss) I try to run awk script as stated in this link: http://mailman.isi.edu/pipermail/ns-users/2004-September/044664.html
When i try to run throughput.awk I got this: awk: throughput.awk:47: (FILENAME=aodv-50-0-20.tr FNR=245464) fatal: division by zero attempted When i run delay.awk I got this: awk: delay.awk:42: %g\n",pkt_id,time,pkt_id,recv[pkt_id]-send[pkt_id]) awk: delay.awk:42: ^ syntax error awk: delay.awk:42: %g\n",pkt_id,time,pkt_id,recv[pkt_id]-send[pkt_id]) awk: delay.awk:42: ^ backslash not last character on line When i run pkt_loss.awk I got this: 0 1 0 0 Is this the output looks for printf("%10g %10g %10g\n",tx,drop,pkt_loss*100)? What is the problem for throughput.awk and delay.awk? Thanks --------------------------------- Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.