Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

368.Replace text in multiple files -- How to batch replace word "old" in many files with different words "new1","new2",...?

User: editor -- 2009-12-17
Hits: 143
Type: Replace text in multiple files   
Search all Replace text in multiple files examples
Description:
I have a lot of files: file1, file2, file3, ... ,and in each files, there is a word like 'old'.

I want to replace:

word 'old' in file1 to 'new1'
word 'old' in file2 to 'new2'
word 'old in file3 to 'new3'
...
How can I do it with Replace Pioneer?
Answer:
Hint: You need to Download and install "Replace Pioneer" to finish following steps.
1. ctrl-b open "Batch Runner" window
2. drag the file1,file2,file3 from file browser to "Batch Runner" window
3. sort the files by clicking the "input file" column
4. click "Fast Replace" button, click "Add":
enter search window like:

enter replace window like:

5. click "ok" and click "Start", all files will be replaced with new1, new2, ... in sequence

Similar Examples:
How to replace one content of same files with different contents ? (59%)
How to replace all words "NAME" in a file to different names listed in another file in sequence? (55%)
How to replace the all word "test" with the first word in same line? (54%)
How to batch replace 'old' to 'new' in many pdf files? (54%)
How to replace words in a text file only if they are whole words? (53%)
How can I replace the 3rd lines of many files to a fixed string? (52%)
How to batch rename files in different folders and move them to a common folder? (52%)
How to batch replace 'old' to 'new' in many word doc files? (52%)

Check Demo of Replace text in multiple files