Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

733.Text file parser -- How to extract multiple lines in specified order from many text files?

User: editor -- 2011-03-07          << 732  734 >>
Hits: 2398
Type: Text file parser   
Search all Text file parser examples
Description:
How to extract multiple lines with specified order from many text files?
Need to change the line order to 3,5,7,1,1,6,8,9,... in the new file.
Input Sample:
line1
line2
line3
line4
line5
line6
line7
line8
line9
...
Output Sample:
line3
line5
line7
line1
line1
line6
line8
line9
...
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 files from windows file browser to "Batch Runner" window
3. click 'fast replace' button open 'fast replace' window
* click 'add', and set 'replace' to:

* click 'ok'
* make sure 'regular exp' option is selected, and click 'Start' button, done.

Note: should use version 2.61 or newer.

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to extract all lines with specified date range from text file? (79%)
How to extract lines containg specified words from many files? (77%)
How to extract all lines with numbers from many text files? (76%)
How to extract all data followed by specified words from many files? (72%)
How to extract all specified date format from a text file? (71%)
How to extract all lines by specified words in group? (70%)
How to remove lines containing specified words in a text file? (69%)
How to change the number in each line to specified order in a text file? (69%)

Check Demo of Text file parser
Keywords:
extract multiple lines  line order  extract multiple  order  multiple lines  version  rsi  specified  text file parser  file parser  order text lines in files  extract multiple lines windows  extract lines from text file windows  extract multiple lines from file in windows  extract multiple lines from text file windows  extract lines from multiple text files windows  extract lines text file windows  windows extract lines from text file