newsstats/contrib/yearstats.sh
Thomas Hochstein 2ff3ea38cc Change install path from /srv/ to /opt/.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-06-29 12:27:36 +02:00

12 lines
243 B
Bash
Executable file

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