I need to update two entries in a hosts file because the server is moving to a new network.
Is there a way just to search the hosts file for a certain IP address and if it exists change it.
Ex. 10.0.0.1 server1
10.0.0.2 server2
Need to change to
10.0.0.3 server1
10.0.0.4 server2

Thanks