#!/bin/rc contrib=/n/sources/contrib for(user in $contrib/*) if(test -d $user/replica && test -d $user/root){ who=`{basename $user} for(replica in $user/replica/*){ pkg=`{basename $replica} grep '^sys/man.*(([0-9][0-9])|[1-9])$' $replica/db | while(page=`{read}) echo $who $pkg $page(1) } }