Elixir library and command-line tool to expand IP range(s) into a list of IP tuples
defp deps do
[
{:iplist, "~> 1.0.0"}
]
end
Or, if you only want the command-line tool;
make install
This will use mix to build an escript executable, and copy it to ~/bin/
$ ./iplist 1.2.3.4..1.2.3.5
1.2.3.4
1.2.3.5
$ ./iplist 1.2.3.4/31
1.2.3.4
1.2.3.5
$ cat foo
1.2.3.4
1.2.3.0/24
1.2.3.4..1.2.3.5
$ cat foo | ./iplist
1.2.3.4
1.2.3.0
1.2.3.1
...
See doc/index.html