#!/bin/sh

for ind in $(ls index_* | sed -e 's,\-[0-9][0-9]\.html.*,,' | sort | uniq)
do
	last=$(ls $ind* | tail -1)
	date=$(ls $last* | sed -e 's|index_||;s|\.html.*||')
	count=$(grep ^Total $last* | sed -e 's,.*<b>,,;s,<.*,,')
	echo $date $count
done
