replacing all entries of <oldowner> with <newowner> in multiple php files

NeghVar

2[H]4U
Joined
May 1, 2003
Messages
2,671
Ok, my employer bought out another company. As we are doing some changes to the website and intranet website. Every php file has the string copyright [email protected] . We want to change this to [email protected].

Is there a command in Centos 7 cli which will replace the old string with the new string in all php files in /var/www recursively?
 
If I remember my linus right you can use 'find' and pipe that into a 'sed' command.
 
Screw command line bs and pipes, that's what modern text editors are for :D

Ultraedit can easily do this. Search->Replace In Files. I would imagine any other Dev Environment could do the same.
 
Back
Top