clean-up and updates
[p2p-testing-infrastructure.git] / ControlScripts / parse_mon_log / parse_packets_out
1 #!/bin/bash
2
3 awk '
4 BEGIN   {
5         count = 0
6         init = 1
7         printf "bytes_sent\n"
8 }
9
10 /^Chain udp_out/                {
11         count = 0
12         init = 0
13 }
14
15 {
16         count++
17         if (count == 5 && !init)
18                 printf "%s\n", $1
19 }
20 '