How do I get the IP from this output?
I've been trying to find some information on how to "parse" text, I usually manage to figure things out but not this time.
I just want the IP from roadshow, all I've found is ShowNetStatus which outputs this:
Network status summary
Local host address = 192.168.100.13 (on interface 'Prism2')
Default gateway address = 192.168.100.1
Domain name system servers = 192.168.100.1, 192.168.100.1
But how do I script so it just outputs the IP (host address)?
Last edited by shelter; 27 January 2023 at 14:14.
|