#!/bin/sh

wget -q -O /tmp/index-$$.html http://localhost:2006/
for ip in $(grep "^0.0.0.0	0" /tmp/index-$$.html|cut -d'	' -f3|sort);do
	sed -ne'/^Table: Routes/,${s#/32##;p}' /tmp/index-$$.html|grep "^$ip	"
done
rm -f /tmp/index-$$.html
