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: 722
Type: Text file parser   
Search all Text file parser examples
Description:
How to batch extract specified lines from a text file?
Input Sample:
file1
file2
file3
...
Output Sample:
extract line 1,2,10-28,and 50-max of all files.
Answer:
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/236.rst.zip

Screenshot 1:  Replace_Window


Similar Examples:
How to extract all specified links from a html file? (79%)
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%)
How to insert a line after specific lines in a text file? (72%)
How to extract all lines with specified date range from text file? (70%)
How to search and sum the numbers at specified position in a text file? (69%)

Check Demo of Text file parser
Keywords:
folders  unit number filter  number filter  unmatched  unmatch  filter  folder  pick  print  text file parser  batch file to extract lines of text  batch to extract lines from text file  batch extract lines from text file  extract lines from text file batch  extract lines from multiple files  batch extract lines text  batch extract lines text file  batch extract lines