JSON addr to jq iproute2

Machine-readable interface dump; list UP links with their local IPs

ip -j a | jq -r '.[] | select(.operstate=="UP") | .ifname + " " + (.addr_info[]?.local // "-")'
more iproute2 all 12 commands →