s416178-mlworkshops/draw_plots.sh
2020-04-03 15:17:49 +02:00

18 lines
327 B
Bash

#!/bin/bash
mv wer.txt wer1.txt
mv srr.txt srr1.txt
cat wer1.txt | tail -n 50 > wer.txt
cat srr1.txt | tail -n 50 > srr.txt
for FILE in "$@"
do
gnuplot <<- EOF
set term png
set title "Graph - ${FILE}"
set output "${FILE}.png"
plot "${FILE}.txt" with points pointtype 5 notitle
EOF
done