root@nat-shunt-v230301:/# ip -br a | grep '^mac'
mace3fb3e9d21e3@br-netns-router UP 172.18.12.1/16
mac08f2462d1dbd@br-netns-router UP 172.18.12.2/16
macd14307394c91@br-netns-router UP 172.18.12.3/16
mac15e55e25b0c5@br-netns-router UP 172.18.12.4/16
root@nat-shunt-v230301:/#
root@nat-shunt-v230301:/# ip -br a | grep '^mac' | awk '{print $NF}' | awk -F '/' '{print $1}'
172.18.12.1
172.18.12.2
172.18.12.3
172.18.12.4
root@nat-shunt-v230301:/#
root@nat-shunt-v230301:/#
root@nat-shunt-v230301:/#
root@nat-shunt-v230301:/# ip -br a | grep '^mac' | awk '{split($NF, a, "/"); print a[1]}'
172.18.12.1
172.18.12.2
172.18.12.3
172.18.12.4