leave only N lines in log files

This commit is contained in:
s452111 2020-04-23 11:16:46 +02:00
parent 05c39d7297
commit bd8a4cc189

View File

@ -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