| User: editor -- 2011-03-30 << 754 756 >> |
| Hits: 4300 |
| Type: Text file parser |
| Search all Text file parser examples |
| Description: |
| How to extract all lines that contain more than 30 characters from multiple files, and save the result to one file? |
| Input Sample: |
| FILE1: 1234567890 123456789012345678901234567890123 12345678901234567890 12345678901234567890123456789012345678 FILE2: 12345678901234567890 123456789012345678901234567890123456789 |
| Output Sample: |
| OUTPUT FILE: 123456789012345678901234567890123 12345678901234567890123456789012345678 123456789012345678901234567890123456789 |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
| 1. open 'Tools->Batch Runner' window 2. drag multiple text files from Windows to "Batch Runner" window 3. click 'Fast Replace' button * click 'Add', set 'Search' to: set 'replace' to: click 'ok' * check option of "Reg exp", "Cross Line" and "Extract" 4. click "Start", and click "output to single file" button to select an output file, such as output.txt, done! Note: please use version 2.62 or newer, which supports "output to single file" button. |
Screenshot 1: Fast_Replace_Window |