| User: editor -- 2011-08-16 << 836 838 >> |
| Hits: 250 |
| 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 word with a list of words repeatly in a text file? (65%) How to replace the 2nd and 3rd occurrences of some words in multiple files? (63%) How to search and replace text for specified occurrences with reg exp? (62%) How to replace a word/string with increasing sequence number in a text file? (62%) How to replace each xxx with the first word in the same line in text file? (62%) How to count the occurrance of some specified words in many files? (61%) How to replace a string in one text file with random words from another file? (61%) |
Check Demo of Advanced search and replace |
| Keywords: |
| first word second examp example sequence seq sum tem folder replace the first replace with a sequence of words pattern first word word sequence word to replace old replace in sequence replace example search and replace first search words |