11 lines
306 B
Bash
Executable File
11 lines
306 B
Bash
Executable File
#!/bin/sh
|
|
filename=$2
|
|
|
|
/var/gopher/plot/plot.py $filename
|
|
gnuplot -e "set terminal dumb; set xdata time; set timefmt '"%H:%M"'; plot '/tmp/temp.tsv' using 1:2 w l title ''" >> /tmp/plot.txt
|
|
sed -i '1d' /tmp/plot.txt
|
|
sed -i 's/\(.\{2\}\)//' /tmp/plot.txt
|
|
cat /tmp/plot.txt
|
|
rm /tmp/plot.txt
|
|
rm /tmp/temp.tsv
|