ip_compact

command module
v0.0.0-...-e0e5ce4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 7 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL