#!/bin/sh # cdbmake-cctlds.sh # convert countrycodes data file to cdb # wcm, 2004.02.23 - 2004.02.24 # === awk ' BEGIN { FS = ":" } /^[A-Z]/ { print "+" length($1) "," length($2) ":" tolower($1) "->" tolower($2) } END{ print "" } ' | /usr/local/bin/cdbmake ${@} ### that's all, folks!