Skip to content

Instantly share code, notes, and snippets.

@gonghao
Created January 22, 2015 07:17
Show Gist options
  • Select an option

  • Save gonghao/e9b9ef170d82a0fde86e to your computer and use it in GitHub Desktop.

Select an option

Save gonghao/e9b9ef170d82a0fde86e to your computer and use it in GitHub Desktop.
chnroute
curl 'http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest' | grep ipv4 | grep CN | awk -F\| '{ printf("%s/%d\n", $4, 32-log($5)/log(2)) }' > chnroute.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment