s416178-mlworkshops/draw_plots.sh

18 lines
327 B
Bash
Raw Normal View History

2020-04-03 14:31:20 +02:00
#!/bin/bash
2020-04-03 15:06:43 +02:00
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
2020-04-03 14:31:20 +02:00
for FILE in "$@"
do
gnuplot <<- EOF
set term png
2020-04-03 15:01:01 +02:00
set title "Graph - ${FILE}"
2020-04-03 14:31:20 +02:00
set output "${FILE}.png"
2020-04-03 15:17:49 +02:00
plot "${FILE}.txt" with points pointtype 5 notitle
2020-04-03 14:31:20 +02:00
EOF
done