Ive written a simple PHP script to do it for you.
Save it as a .php file and use it in apache localhost or run as php
Remember to edit the last line of the code with your info
<?php
/*
THIS IS COMMENT SECTION TO HELP YOU
$filecount = How much files you have to replace
$location = Location of your file ; Example "usr/bk/file.txt"
$string = The string you want to replace
$newstring = The new string you want to put
*/
function replace($filecount,$location,$string,$newstring){
for($i = 0; $i>= $filecount; $i++)
$file = file_get_contents($location);
file_put_contents($file,str_replace($string,$newstring,$file));
}
}
/*
Remember to replace the variables of the function using "","",""
Below is an example calling the function, replace with your own:
*/
replace(10,"/usr/locationhere.zip","foo","bar","baz");