We help IT Professionals succeed at work.

Text file Find and Replace - multiple substitutions, multiple files

willsherwood
willsherwood asked
on
i've inherited several projects that need PHP source file text substitutions across multiple files
in a directory.
There's a set of about 10 very simple (unique) text substitutions to perform.
no regex is needed.

i've looked at FAR and TextCrawler and they seem to only do ONE FROM-TO substitution across multiple files (albeit very elegantly).

Does anyone know of a tool that does multiple (simple) substitutions across multiple files?
Windows7

thanks
Comment
Watch Question

End-user support
Commented:
Would Notepad++ text editor work for you?
ozo
Most Valuable Expert 2014
Top Expert 2015
Commented:
perl

Commented:
If there's only 10 simple changes, why not just do them manually? You'll spend more time finding the right tool and making sure it works as expected, and there's no screw-ups...

Author

Commented:
Sorry i wasn't clear
i have to make the (same) SET of changes to MULTIPLE files (about 100 files per project)

Thus manually edit by edit in an editor or trying to program in a language and debug file handling, etc.,
would not be an efficient solution.
NVITEnd-user support
Commented:
Notepad++ Find in filesIf all the files are in the same folder or in sub-folders, an editor like Notepad++ should work. It can find across files in folder and sub-folders
Terry WoodsIT Guru
Most Valuable Expert 2011
Commented:
I agree that Perl & Notepad++ should both manage it. Personally I've only used perl for recursive command line work in Linux and it's probably more scary to most, so Notepad++ is worth trying first. Let us know if we can help with entering the correct details.

Author

Commented:
i just found    Replace Studio Business Edition
and it seems have built-in all the features i'm looking for
if it doesn't do the job, i'll try perl + Notepad++

thanks all

Author

Commented:
thanks for your help
NVITEnd-user support

Commented:
Thanks for the update, willsherwood. Glad to help.