User: editor -- 2011-05-18 << 780 782 >> |
Hits: 3999 |
Type: Text file parser |
Search all Text file parser examples |
Description: |
How to extract all lines with numbers from many text files, and write the result to a single file? |
Input Sample: |
this line has no number this line has number 123 has number 333 no number ... |
Output Sample: |
this line has number 123 has number 333 |
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 file browser to "Batch Runner" window 3. click "Fast Replace" button * click "Add" button set "Search" to: set "Replace" to: click "ok" * uncheck option of "Cross Line", check option of "Reg Exp" and "Extract" * click "Start" button * select "output to single file" button, and enter output filename, all lines will be output to the file. |
Screenshot 1: Fast_Replace_Window |