From bd8a4cc1892f0ea27db0e7014d147e065b3ea075 Mon Sep 17 00:00:00 2001 From: s452111 Date: Thu, 23 Apr 2020 11:16:46 +0200 Subject: [PATCH] leave only N lines in log files --- metrics_service.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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