#!/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