#!/bin/sh for site in `cut -d: -f1 /etc/mailman/sites | sort`; do echo "$site:" dir=`grep ^${site}: /etc/mailman/sites | cut -d' ' -f2` for ml in `ls ${dir}/archives/public/ | sort`; do echo " - $ml" done done