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