| User: editor -- 2008-11-25 |
| Hits: 225 |
| Type: Advanced search and replace |
| Search all Advanced search and replace examples |
| Description: |
| How to replace all words "NAME" in a file to different names listed in another file in sequence? |
| Input Sample: |
| FILE1: ***** NAME ******* NAME ******** *** NAME *********** *** NAME ********* ... FILE2: name1 name2 name3 name4 ... |
| Output Sample: |
| FILE1: ***** name1 ******* name2 ******** *** name3 *********** *** name4 ********* ... |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" to finish following steps. |
| 1. Load file2.txt into system: 1) ctrl-o open file2.txt 2) ctrl-h open replace dialog set "Replace Unit" to "Line" * click "Advanced" page: set "run following at the beginning of replace" to: set "run following for each matched unit" to: 3) click "Replace" button, done! 2. make replace to file1.txt 1) ctrl-o open file1.txt 2) ctrl-h open replace dialog set "Search for pattern" to: set "Replace with pattern" to: 3) click "Replace", done! |
| Download Script: scripts/298.rst.zip |
Similar Examples: |
| How to replace all the word 'TEMPLATE' with each word in a dictionary file in sequence? (63%) How to parse all the fields in different segment from a text file? (56%) How to replace the all word "test" with the first word in same line? (56%) How to replace a string in one text file with random words from another file? (55%) How to batch replace word "old" in many files with different words "new1","new2",...? (54%) How to rename files by adding folder name ahead and sequence behind? (54%) How to rename all the files by adding the file size after filename? (53%) How to replace one content of same files with different contents ? (53%) |
Check Demo of Advanced search and replace |