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: 417
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 all lines with numbers from many text files? (76%)
How to extract all specified date format from a text file? (71%)
How to change the number in each line to specified order in a text file? (69%)
How to change columns in each line to specified order in text file? (68%)
How to extract all characters within specified char set from a text file? (66%)
How to extract multiple webpages and save all text into text files? (66%)
How to extract all email addresses from many text files? (66%)

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