I am doing visualization analysis on a trace file I generate from ns-2 that traces out the packets sent/received/dropped at various times of the simulation
here is a sample trace output - http://pastebin.com/aPm3EFax
I want to filter out the column1 after grouping it into S/D/R separately, so that I can sum it over to separately to find packet delivery fraction.
I am clueless on how to get this done? (maybe some awk/python help?)
UPDATE: okay, I did this -
cut -d' ' -f1 wireless-out.tr | grep <x> | wc -l
where <x>
is either s
or r
or D