User: editor -- 2012-04-30 << 941 943 >> |
Hits: 4113 |
Type: Text file parser |
Search all Text file parser examples |
Description: |
How to extract all lines that contain "abc" from multiple files? and write the output lines into a single file. |
Input Sample: |
file1: abc def file2: abcabc defdef abc123 ... |
Output Sample: |
output file: abc abcabc abc123 |
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 and drop multiple 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. check option of "Reg exp" and "Extract", uncheck option of "cross line" 5. click "start" button 6. select "output to single file" button, and select "output filename", done. |
Screenshot 1: Fast_Replace_Window |