hi all,
i'm using ns 2.29 to simulate a large wireless topologies (more than 100
nodes). the goal of my simulations is to compute collisions rate. so i 've
enabled MAC trace and i'm using awk to filter only lines where there is
collision (if $1 = 'D' $5 = 'MAC').
but the problem is that the s
Hi there,
instead of first writing the file and then processing it with awk, pipe
the ns output directly through awk so only the lines you are interested
in are ever written to disk:
set file [open "| awk -f myfilter.awk > short_tracefile.tr" w];
myfilter.awk should contain your awk commands.