| User: editor -- 2010-11-07 << 649 651 >> |
| Hits: 3465 |
| 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 an random occurrence of an word with an random line? (69%) How to replace a string with one of the specified words randomly in multiple files? (67%) 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 replace strings and numbers with new format in multiple files? (63%) How to count the occurrance of some specified words in many files? (63%) How to replace the content of XML with a list of words from text file? (61%) |
Check Demo of Advanced search and replace |
| Keywords: |
| 3rd 2nd unit number filter number filter filter unit number old words ren new number of words of multiple files replace words multiple files words with number filter files multiple words filter number number multiple pattern filter replace |