Suppose i just mirrored my vps machine (starting from a clone and then rsync-ing all needed files) with rsync. Obviously i need to change the IP Address value contained into all the config files, but I’m lazy.
So, let’s use “SED” to do it at once, with a single line command.
I need to replace the IP Address “192.168.100.5” with “192.168.100.4” in all files contained in /etc/apache2/*
Continue reading “Replacing IP Address in Apache2 config files with SED”
Incoming search terms:
- sed replace ip and port (1)
- Using sed to replace an ip address in a config file line (1)