Created
October 30, 2013 15:42
-
-
Save greencm/7234836 to your computer and use it in GitHub Desktop.
Display current google IPv4 Netblocks
This file contains hidden or 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
dig -t txt _netblocks.google.com | grep spf | perl -nle 'split; for(@_) { if ($_ =~ m/^ip4/) { print substr($_,4); } }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apparently
@_
is deprecated in newer perls, this works for me: