User: editor -- 2011-08-16 << 836 838 >> |
Hits: 3306 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
How to replace one specified word with a sequence of words from a file? For example, replace the first 'old' with first word from file2, replace the second 'old' with second word from file2, ... |
Input Sample: |
file1: ....old.........old........ .......old.......... ......... old........ file2: worda wordb wordc wordd ... |
Output Sample: |
file1: ....worda.........wordb........ .......wordc.......... ......... wordd........ |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
Assume file2.txt is in the folder of d:\temp\ 1. ctrl-o open file1 2. ctrl-h open 'replace' dialog * set 'search for pattern' to: * set 'replace with pattern' to: 3. click 'replace', done. 4. ctrl-s save to file. |
Screenshot 1: Replace_Window |
Similar Examples: |
How to replace specified word with increasing binary sequence? (67%) How to replace a repeated string in unsequenced order? (66%) How to replace the content of XML with a list of words from text file? (66%) How to replace specific words with its previous words in the same column? (65%) How to replace a word with a list of words repeatly in a text file? (65%) How to add a specified value to the sequence number in each line? (64%) How to replace strings with words in a list in sequence or randomly? (63%) How to replace the 2nd and 3rd occurrences of some words in multiple files? (63%) |
Check Demo of Advanced search and replace |
Keywords: |
two first word second sequence seq example examp tem ass sum first and second words replace with a sequence of words first and second word word sequence specified words first words pattern first word word to replace old |