Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

236.Text file parser -- How to batch extract specified lines from a text file?

User: editor -- 2008-07-28          << 235  237 >>
Hits: 3288
Type: Text file parser   
Search all Text file parser examples
How to batch extract specified lines from a text file?
Input Sample:
Output Sample:
extract line 1,2,10-28,and 50-max of all files.
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-h open 'Replace' dialog
set "Replace Unit" to "Line"
set "Unit Number filter" to:

set "Replace with Pattern" to:

uncheck option of "[ ]print unmatched unit"
2. click "Batch..." button to open "Batch Runner" window
3. click "Pick Files" to select multiple files in folders.
4. click "Batch Replace" button, done!
Download Script:  scripts/

Screenshot 1:  Replace_Window

Similar Examples:
How to extract all specified links from a html file? (79%)
How to extract specified lines in different section of text file? (76%)
How to make search and replace only in specified lines in text file? (74%)
How to batch extract specified words from one txt file with specified name? (74%)
How to extract specified lines in multiple excel(csv) files? (74%)
How to exract specified strings started with www from text file? (74%)
How to extract all specified date format from a text file? (74%)
How to shuffle specified lines in multiple text files? (73%)

Check Demo of Text file parser
logs  210  extract specified lines  folders  unit number filter  number filter  specified line  unmatched  batch extrac  batch extract  extract multiple lines of text from multiple text files  batch to extract lines from text file  batch extract lines from text file  extract lines from text file batch  extract lines from multiple files  extract lines from text batch  extract text lines from multiple files  extract lines from multiple text files