Skip to content

Instantly share code, notes, and snippets.

@Chion82
Last active November 29, 2020 03:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chion82/8fa866c35b9926e7d469b5a595e0ff51 to your computer and use it in GitHub Desktop.
Save Chion82/8fa866c35b9926e7d469b5a595e0ff51 to your computer and use it in GitHub Desktop.
get_cn_ip.sh
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)) }' > your_chn_list.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment