mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-23 17:39:30 +02:00
ircstat/stat: new option -a to also plot the last (partial) month
This commit is contained in:
parent
8fc01a168f
commit
72db3931bd
12
ircstat/stat
12
ircstat/stat
@ -3,6 +3,14 @@ Q=en.qi-hardware.com/irclogs/qi-hardware
|
|||||||
M=en.qi-hardware.com/mmlogs/milkymist
|
M=en.qi-hardware.com/mmlogs/milkymist
|
||||||
# Saving to: `en.qi-hardware.com/irclogs/qi-hardware_2010-06-11.log.html'
|
# Saving to: `en.qi-hardware.com/irclogs/qi-hardware_2010-06-11.log.html'
|
||||||
|
|
||||||
|
all=false
|
||||||
|
case "$1" in
|
||||||
|
-a) all=true;;
|
||||||
|
"") break;;
|
||||||
|
*) echo "usage: $0 [-a]" 1>&2
|
||||||
|
exit 1;;
|
||||||
|
esac
|
||||||
|
|
||||||
N=3
|
N=3
|
||||||
t=
|
t=
|
||||||
>_out
|
>_out
|
||||||
@ -30,7 +38,11 @@ for y in 10 11 12; do
|
|||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if $all; then
|
||||||
|
src=_out
|
||||||
|
else
|
||||||
src="<sed '\$d' _out"
|
src="<sed '\$d' _out"
|
||||||
|
fi
|
||||||
|
|
||||||
gnuplot -persist <<EOF
|
gnuplot -persist <<EOF
|
||||||
set xtics ($t)
|
set xtics ($t)
|
||||||
|
Loading…
Reference in New Issue
Block a user