| User: editor -- 2010-11-07 << 649 651 >> |
| Hits: 316 |
| Type: Advanced search and replace |
| Search all Advanced search and replace examples |
| Description: |
| How to replace the 2nd and 3rd occurrences of some words in multiple files? |
| Input Sample: |
| multiple files, each one like: ......OLD.....OLD.... ...OLD.........OLD.... .......OLD....... ........ |
| Output Sample: |
| change the 2nd and 3rd 'OLD' to 'NEW': ......OLD.....NEW.... ...NEW.........OLD.... .......OLD....... ........ |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
| 1. ctrl-h open 'replace' window * set 'search for pattern' to: * set 'replace with pattern' to: * set 'unit number filter' to: 2. click "Batch" button open "Batch Runner" * drag multiple files from window to "Batch Runner" window * click "Batch Replace", done! |
Screenshot 1: Replace_Window |
Similar Examples: |
| How to replace a word only one time in multiple text files? (65%) How to count the occurrence of a list of words in a text file? (64%) How to replace the second character of every line to 4 in multiple files? (64%) How to count the occurrance of some specified words in many files? (63%) How to replace one specified word with a sequence of words from a file? (61%) How to add bold tag for some specified keywords in multiple html files? (60%) How to replace a word with a list of words repeatly in a text file? (59%) How to replace a number with another number in same text file? (58%) |
Check Demo of Advanced search and replace |
| Keywords: |
| 3rd 2nd unit number filter number filter filter unit number old words new multiple files number of words of multiple files replace words multiple files words with number multiple words number multiple filter number pattern filter replace search words |