newsstats/contrib/yearstats.sh
Thomas Hochstein cff76a3c65 Set executable bit for new scripts.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-06-01 11:03:05 +02:00

12 lines
243 B
Bash
Executable file

#!/bin/bash
# installation path is /srv/newsstats/, please adjust accordingly
# $1: newsgroup
echo "Stats for $1"
cd /srv/newsstats/
for year in {2012..2022}
do
echo -n "${year}: "
bin/groupstats.pl -m $year-01:$year-12 -r sums -n $1
done