Replace Pioneer Home
All Examples
Free Download
all
Advanced search and replace
Replace text in multiple files
Regular expression replace
Batch file rename
Batch download
Text file parser
Text file splitter
Html text generator
Search replace binary
Random word generator
Count and statistics
Character encoding
Bin Hex Oct Dec converter
Text generator
Text sort
Text merge
Text data calculation
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:
5024
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:
1,2,10..28,50..
set "Replace with Pattern" to:
$match\n
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 different section of text file?
(76%)
How to extract specified text from pdf files?
(75%)
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%)
Check Demo of
Text file parser
Keywords:
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