From 53722a27cfab0440afd1135d2502482ee9dc20a0 Mon Sep 17 00:00:00 2001 From: vagrant Date: Thu, 23 Apr 2020 06:33:53 +0000 Subject: [PATCH] up --- countlines-metrics.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/countlines-metrics.sh b/countlines-metrics.sh index d4786e7..ed535d6 100644 --- a/countlines-metrics.sh +++ b/countlines-metrics.sh @@ -21,5 +21,9 @@ paste wikiniews_results.tsv wer.tsv > wikiniews_results.tsv awk 'BEGIN{FS=OFS="\t"}{ bad = bad + $1; all++ }END{ print bad/all }' < wer.tsv >> wer.txt awk 'BEGIN{FS=OFS="\t"}{ if ( $1 == 0 ) good++; all++ }END{ print good/all }' < wer.tsv >> srr.txt -tail -n 50 wer.txt | sponge wer.txt -tail -n 50 srr.txt | sponge srr.txt \ No newline at end of file +tail -n 50 wer.txt > wer1.txt +tail -n 50 srr.txt > srr1.txt +rm wer.txt +rm srr.txt +mv wer1.txt wer.txt +mv srr1.txt srr.txt \ No newline at end of file