Last active
July 20, 2016 21:49
-
-
Save blues-man/918a74e08cc0b9abd87d12d4c3a1a49a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | awk -F '[/"]' '/\/(.*)"/ {x += 2 ^ (32 - $5) - 2 } END { print x }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment