Replacing IP Address in Apache2 config files with SED

replacing ip address in all files with linux sedSuppose 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”

(Visited 1,857 times, 1 visits today)