Get the whole list:
wget ftp://ftp.ripe.net/pub/stats/ripencc/delegated-ripencc-latest
Parse it with the following script:
grep DK.ipv4 delegated-ripencc-latest | awk -F'|' -vOFS=/ '{print $4,32- log($5)/log(2)}' | while read network; do whois --verbose -h whois.ripe.net -T route -x $network >>danske_netblokke 2>&1; sleep 2; done
Now extract the IP subents:
cat danske_netblokke |grep route: | cut -d: -f2| sed 's/[[:space:]]//g'