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)... -- Romain Francoise <rfranco...@debian.org> https://people.debian.org/~rfrancoise/