| User: editor -- 2011-05-06 << 775 777 >> |
| Hits: 307 |
| Type: Replace text in multiple files |
| Search all Replace text in multiple files examples |
| Description: |
| How to remove leading and trailing blanks in each line in multiple text files? |
| Input Sample: |
| <space><space>line1<space> <space>line2<tab><tab> ... |
| Output Sample: |
| line1 line2 ... |
| 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", set "Search" to: * set "Replace" to nothing, and click ok * check option of "Reg exp" and uncheck option of "Cross Line" 4. click "Start", done! |
Screenshot 1: Fast_Replace_Window |