zad3 test17

This commit is contained in:
massta 2020-04-03 16:58:15 +02:00
parent b13175eb26
commit 7d3766b70d

View File

@ -1,4 +1,8 @@
#!/bin/bash
cat output.txt | awk '{print (($7 + $8 + $9)/($7 + $8 + $6))*100;}' > clear.txt
avg=$(numaverage clear.txt)
echo "Medium: $avg" >> clear.txt
srr_matching=$(grep -x "0" results.txt | wc -l)
all=$(wc -l)
srr=$((srr_matching/all))
echo "Medium WER: $avg" >> clear.txt
echo "SRR: $srr" >> clear.txt