avg.sh 288 Bytes
Newer Older
Jan Scheffczyk's avatar
Jan Scheffczyk committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
#!/bin/bash

first=1
avg="log/avg"
touch $avg
"">avg
num=0


declare -A matrix

for file in $(ls benchC*) ;do

if [ first -eq 1 ];then
    head -n +4 $file >> $avg
fi

    while read -r line; do

    echo ""
    done <<< $(tail -n +5 "$file")


    (( num++ ))

done

#get relevant lines