Skip to content

x-way/ip_compact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ip_compact

CircleCI Go Report Card

"Compact" a list of IP prefixes (removing duplicates, merging adjacent ranges).

Installation

# go install github.com/x-way/ip_compact@latest

Usage

# cat iplist.txt
192.168.4.0/24
192.168.5.0/24
2001:db8::123
192.168.6.0/23
192.168.5.5
2001:db8::123/128

# cat iplist.txt | ip_compact
2001:db8::123/128
192.168.4.0/22

About

Compact a list of IP prefixes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages