Ho sotto l'output di scutil --nc show <service id>
Connected
Extended Status <dictionary> {
ConnectionStatistics : <dictionary> {
ConnectCount : 6
ConnectedCount : 3
DisconnectedCount : 5
MaxConnectTime : 1874
}
IPv4 : <dictionary> {
Addresses : <array> {
0 : 10.20.15.181
}
ExcludedRoutes : <array> {
0 : <dictionary> {
DestinationAddress : 115.112.149.120
InterfaceName : en0
SubnetMask : 255.255.255.255
}
1 : <dictionary> {
DestinationAddress : 115.112.149.120
InterfaceName : en0
SubnetMask : 255.255.255.255
}
2 : <dictionary> {
DestinationAddress : 115.112.149.120
InterfaceName : en0
SubnetMask : 255.255.255.255
}
3 : <dictionary> {
DestinationAddress : 115.112.149.120
InterfaceName : en0
SubnetMask : 255.255.255.255
}
4 : <dictionary> {
DestinationAddress : 115.112.149.120
InterfaceName : en0
SubnetMask : 255.255.255.255
Volevo eliminare gli indirizzi IP da Addresses : <array>
da sotto
IPv4 : <dictionary> {
Addresses : <array> {
0 : 10.20.15.181
1 : 10.20.15.182
}
Come scrivere un'espressione regolare per questo?