| User: editor -- 2010-10-27 << 639 641 >> |
| Hits: 413 |
| Type: Replace text in multiple files |
| Search all Replace text in multiple files examples |
| Description: |
| How to count the number of words for many files and append result to each file? |
| Input Sample: |
| ============================= File1.txt: This is to test file1, line1 This is to test file1, line2 ============================= File2.txt: This is file2 |
| Output Sample: |
| ============================= File1.txt: This is to test file1, line1 This is to test file1, line2 Totally 12 words. ============================= File2.txt: This is file2 Totally 3 words. |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
| 1. open "Tools->Batch Runner" menu 2. drag multiple text files from "Windows File Browser" to "Batch Runner" window 3. click "Fast Replace" button * click "Add", in "Search", enter: * in "Replace", enter: * click "ok" button. * make sure "Regular Exp" and "Cross Line" options are selected. * click "Start", done! |
Screenshot 1: Fast_Replace_Window |