diff --git a/metrics_service.sh b/metrics_service.sh index c951d04..ed7ebbb 100644 --- a/metrics_service.sh +++ b/metrics_service.sh @@ -22,5 +22,5 @@ awk '{sum += $1; n++} END { print sum / n; }' < wer_per_line.txt >> wer.txt awk '{if ($1 == 0) acc += 1;} END { print ( acc / NR) * 100; }' < wer_per_line.txt >> srr.txt # trim the files to max N lines -tail -15 wer.txt -tail -15 srr.txt +echo "$(tail -15 wer.txt)" > wer.txt +echo "$(tail -15 srr.txt)" > srr.txt