DOKK / manpages / debian 12 / libcorkipset-utils / ipsetcat.1.en
IPSETCAT(1) User Commands IPSETCAT(1)

ipsetcat - utility of libcorkipset library

ipsetcat [options] <input filename>

Prints out the (non-sorted) contents of a binary IP set file.

<input filename>
To read from stdin, use "-" as the
filename.

--output=<filename>, -o <filename>

If this
option isn't given, then the contents will be written to standard output.

--networks, -n

Where possible, we group the IP addresses in the set into CIDR network blocks. For dense sets, this can greatly reduce the amount of output that's generated.

--verbose, -v

If
this option is not given, the only output will be any error messages that occur.

--help

Display this help and exit.

If you give
the "--networks" option, then we will collapse addresses into CIDR networks where possible. CIDR network blocks will have one of the following formats:
x.x.x.x/cidr xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/cidr
Individual IP addresses will have one of the following formats:
x.x.x.x xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx
Note that we never include a /32 or /128 suffix for individual addresses, even if you've requested CIDR networks via the "--networks" option.
There are no guarantees made
about the order of the IP addresses and networks in the output.
August 2021 ipsetcat 1.1.1+git20171111.6842a63-2