From 6420497eac22ec95772aba1e2bb0bcf9bcc1baec Mon Sep 17 00:00:00 2001 From: massta Date: Sun, 5 Apr 2020 18:29:20 +0200 Subject: [PATCH 1/2] zad4 test5 --- count2.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/count2.sh b/count2.sh index 2ea0147..741756b 100755 --- a/count2.sh +++ b/count2.sh @@ -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 From 21107fe4bbae985a640f00e0910699a097915c46 Mon Sep 17 00:00:00 2001 From: massta Date: Sun, 5 Apr 2020 18:30:49 +0200 Subject: [PATCH 2/2] zad4 test6 --- count2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/count2.sh b/count2.sh index 741756b..8205dd9 100755 --- a/count2.sh +++ b/count2.sh @@ -13,10 +13,10 @@ srr=$(echo "($srr_matching/$all)*100" | bc -l) echo "$avg" >> averagewer.txt echo "$srr" >> averagesrr.txt -tail -n 1 averagewer.txt > averagewertmp.txt +tail -n 50 averagewer.txt > averagewertmp.txt cat averagewertmp.txt > averagewer.txt -tail -n 1 averagesrr.txt > averagesrrtmp.txt +tail -n 50 averagesrr.txt > averagesrrtmp.txt cat averagesrrtmp.txt > averagesrr.txt echo "Avg WER: $avg%" >> clear.txt