Utils: 1-column-statistics added, which includes awk scripts that calculate min,...
[p2p-testing-infrastructure.git] / Utils / 1-column-statistics / max
1 #!/usr/bin/awk -f
2 # Calculates the maximum value of 1 column.
3
4 BEGIN   {
5         max = log(0)
6         FS = "[ \t]+"
7 }
8
9 /^[0-9]+/ {
10         if($1 > max)
11                 max = $1
12 }
13
14 END     {
15         printf "%f\n", max
16 }