User: editor -- 2011-06-19 << 801 803 >> |
Hits: 2677 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
How to replace a word only one time in multiple text files? There may be multiple occurrence of word 'OLD' in every file, how to replace the first 'OLD' with 'NEW' in each file? |
Input Sample: |
...OLD......OLD... .......OLD......... OLD.............. ........... |
Output Sample: |
...NEW......OLD... .......OLD......... OLD.............. ........... |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. ctrl-h open 'replace' dialog * set 'search for pattern' to 'OLD' * set 'replace with pattern' to 'NEW' * set 'unit number filter' to 1 means only replace the 1st occurrence. 2. click 'Batch...' button to open 'Batch Runner' window * drag multiple text files from windows file browser to 'Batch Runner' window * click 'Batch Replace', done. |
Screenshot 1: Replace_Window |
Similar Examples: |
How to insert a keyword only at first line of multiple text files? (73%) How to delete the second column in multiple text files? (71%) How to make line by line sequential merge of multiple text files? (69%) How to replace a word/string with increasing number in multiple files? (68%) How to extract the last non-blank line from multiple text files? (66%) How to make random line by line sequential merge of multiple text files? (65%) How to remove additional line breaks from multiple files? (65%) How to shuffle specified lines in multiple text files? (65%) |
Check Demo of Advanced search and replace |
Keywords: |
multiple occurrence 1st unit number filter number filter time every filter very unit number replace the first word replace one time only replace first occurrence replace first word in multiple file replace a word one time replace word one time only first filter files pattern first word |