zad4 test5

This commit is contained in:
massta 2020-04-05 18:29:20 +02:00
parent c3cdbc67a2
commit 6420497eac

View File

@ -10,13 +10,13 @@ srr_matching=$(grep -x "0" clear.txt | wc -l)
all=$(cat clear.txt | wc -l)
srr=$(echo "($srr_matching/$all)*100" | bc -l)
echo "$avg%" >> averagewer.txt
echo "$srr%" >> averagesrr.txt
echo "$avg" >> averagewer.txt
echo "$srr" >> averagesrr.txt
tail -n 50 averagewer.txt > averagewertmp.txt
tail -n 1 averagewer.txt > averagewertmp.txt
cat averagewertmp.txt > averagewer.txt
tail -n 50 averagesrr.txt > averagesrrtmp.txt
tail -n 1 averagesrr.txt > averagesrrtmp.txt
cat averagesrrtmp.txt > averagesrr.txt
echo "Avg WER: $avg%" >> clear.txt