#!/bin/sh filename=$2 # Takes a daily log file and generates a plot for temperature. /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