zad4 test5
This commit is contained in:
parent
c3cdbc67a2
commit
6420497eac
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user