Can’t believe there’s (still) no way to list just the ipset members

I find it amusing that the ipset command has all kinds of output modifiers like -name to show only the name of the list, -terse to show the name and headers, and even -output xml, but lacks a straightforward way to list the set members only. Many tools have options like –skip-headers, –no-headers, –skip-column-names, etc., but not ipset.

I guess someone needed the XML output and contributed it, so maybe I should try and contribute -no-headers or something similar.

At least this gives me some shell scripting practice. 🙂
This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *