From 4dea00e6ab442d58b3ad3109bc0abfe1a88112ed Mon Sep 17 00:00:00 2001 From: massta Date: Fri, 3 Apr 2020 17:35:38 +0200 Subject: [PATCH] zadanie3 test29 --- count2.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/count2.sh b/count2.sh index 21166dd..0fac3de 100755 --- a/count2.sh +++ b/count2.sh @@ -1,14 +1,12 @@ #!/bin/bash cat output.txt | awk '{print (($7 + $8 + $9)/($7 + $8 + $6))*100;}' > clear.txt -paste -d ' ' wikiniews_results.tsv clear.txt > wikiniews_results.tsv +paste -d '\t' wikiniews_results.tsv clear.txt > wikiniews_results.tsv avg=$(numaverage clear.txt) -avg=$(echo "$avg*100" | bc -l) 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 WER: $avg%" >> clear.txt echo "SRR: $srr%" >> clear.txt