User: editor -- 2012-01-16 << 902 904 >> |
Hits: 4252 |
Type: Text file parser |
Search all Text file parser examples |
Description: |
How to extract the last non-blank line from multiple text files? |
Input Sample: |
===================== file1: line11 ... line1n ===================== file2: line21 ... line2m ===================== ... |
Output Sample: |
line1n line2m ... |
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 open "Fast Replace" window 4. click "Add" to add new rule * set "search" to: * set "replace" to: * click "ok" 5. check option of "reg exp", "cross line" and "extract", and click "start" 6. click "output to single file" and select an output file, done. |
Screenshot 1: Fast_Replace_Window |