User: jia -- 2012-06-23 << 962 964 >> |
Hits: 3440 |
Type: Replace text in multiple files |
Search all Replace text in multiple files examples |
Description: |
I have a few articles, these articles are text files, and I have a keyword list. I want get the keyword insert to the articles orderly, the keyword in the article are randomly appear 4-6 times, and choose the keyword as the article title. |
Input Sample: |
keyword: one two three 1.txt blah blah blah blah blah blah blah blah 2.txt blah blah blah blah blah blah blah blah |
Output Sample: |
1.txt one one blah blah one blah blah one blah blah one blah blah 2.txt two two blah blah two blah blah two blah blah two blah blah |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. First of all, prepare the keywords.txt under folder d:\test\ 2. ctrl-h open 'replace' dialogue * set 'replace with pattern' to: * click 'advanced' tab, set 'run following for each matched unit' entry to: 3. click "Batch..." button to open "Batch Runner" window 4. drag multiple article files to "Batch Runner" window, and make sure they are in correct order. 5. click "Batch Replace", done! |
Screenshot 1: Replace_Window |
Screenshot 2: Replace_Advanced_Window |