replace a string in a file

Hello,

What is the command to replace a string in a text file? Like changing all the IP addresses in the /etc/hosts without changing it one by one but with a command to replace 111.222.333.444 to 222.333.444.555

Best Regards

 

 

 

 

Top