aboutsummaryrefslogtreecommitdiff
path: root/tabulate.sh
blob: 4d10f730063a94b2a03aef794b998a736e774c11 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
for i in `seq 10 62`
do
    rm -f run_"$i".txt
    for j in `seq 1 40`
    do
        echo -n "$i $j " >> run_"$i".txt
        cat run_"$i"_"$j".txt | awk '/Elapsed/ || /Maximum/ || /User time/ || /System time/' | awk 'BEGIN{line=0}{if(line%4<=1)printf($4" ");if(line %4==2)printf($8" ");if(line%4==3)printf($6" ");}{line+=1}END{printf("\n");}' >> run_"$i".txt
    done

done