Skip to content

Instantly share code, notes, and snippets.

@Nullizer
Created April 14, 2018 13:15
Show Gist options
  • Save Nullizer/34879555fab3070bdee44b8fdf56e0e4 to your computer and use it in GitHub Desktop.
Save Nullizer/34879555fab3070bdee44b8fdf56e0e4 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e -o pipefail
wget -O- 'http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest' | \
awk -F\| '/CN\|ipv4/ { printf("%s/%d\n", $4, 32-log($5)/log(2)) }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment