#!/bin/sh
# Display a list of countries that have no coverage
cat ../config/namebench.cfg | perl -ne 'chomp; if (/[0-9a-f]=.* (\w\w)$/) { print "$1\n"; }' | sort -u > /tmp/iso.has
echo "Countries listed: `wc -l /tmp/iso.has`"
cat ../data/ISO_31661-1.codes| perl -ne 'if (/ +(\w\w)$/) { print "$1\n"; }' > /tmp/iso.codes
echo "Countries total: `wc -l /tmp/iso.codes`"
cat /tmp/iso.has /tmp/iso.has /tmp/iso.codes | sort | uniq -u > /tmp/iso.missing
cat /tmp/iso.missing | xargs -I{} -n1 grep " {}$" ../data/ISO_31661-1.codes
echo "Countries missing: `wc -l /tmp/iso.missing`"
Add tool to display missing countries
Add tool to display missing countries
