Skip to content

Instantly share code, notes, and snippets.

@cou929
Created December 19, 2012 02:57
Show Gist options
  • Save cou929/4334005 to your computer and use it in GitHub Desktop.
Save cou929/4334005 to your computer and use it in GitHub Desktop.
get start and end ip from range with NetAddr::IP
$ perl -MNetAddr::IP -le "print NetAddr::IP->new('192.168.1.0/24')->range"
192.168.1.0 - 192.168.1.255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment