On 2023-02-12, at 11:01:27 +0100, Romain Francoise wrote:
> On Sat, Feb 11, 2023 at 03:37:00PM +0000, Jeremy Sowden wrote:
> > My inclination is just to use awk to pick out the second field.  For
> > example,
> >
> >   $ ip -f inet6 addr show dev lo | awk '$1 == "inet6" { print $2 }'
> >   ::1/128
> 
> Yes. Although all this parsing of `ip' output is fraught with danger,
> ideally Shorewall would use the JSON version (but that requires a
> dependency on `jq' or similar)...

Yes, I came to the same conclusion.  My thinking was to broach the topic
upstream at some point in the not too distant future.

J.

Attachment: signature.asc
Description: PGP signature

Reply via email to