| User: editor -- 2011-09-01 << 845 847 >> |
| Hits: 259 |
| Type: Replace text in multiple files |
| Search all Replace text in multiple files examples |
| Description: |
| How to remove unnecessary line breaks for multiple files? There are many files with duplicated line breaks(or newline), how to replace more line breaks with a single one? |
| Input Sample: |
| many files like: line1 line2 line3 ... |
| Output Sample: |
| there should be no additional newlines for multiple files: line1 line2 line3 ... |
| 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' to add new rules set 'search' to: set 'replace' to: * click 'ok' 4. make sure 'regular exp' option is selected 5. click 'Start', done. |
Screenshot 1: Fast_Replace_Window |