I am trying to do a mass search and replace across many files where I replace a keyword in the file, lets say myKeyword
, with the name of the current file.
So in file1.php the phrase myKeyword
would become file1
;
in file2.php
it would become file2
;
and so on until all the files are completed.
I was wondering if this is possible using scripts or a text editor function.