Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1387.Text file splitter -- How to split multiple text files by 100 lines?

User: Aaron -- 2017-01-01          << 1386  1388 >>
Hits: 3470
Type: Text file splitter   
Search all Text file splitter examples
Description:
How to split multiple text files in batch runner into multiple 100 line files?  
This is version of 1313 but instead of splitting 1 line per file use 100 lines  
per file.
Input Sample:
File A: 
 
Contains 3000 lines 
 
File B:  
 
Contains 5000 lines 
 
File C: 
 
Contains 3659 lines 
 
etc. 
 
File
Output Sample:
Output 1: 
 
First 100 lines from File A 
First 100 lines from File B 
First 100 lines from File C 
etc. 
 
Output 2: 
 
Next 100 lines from File A 
Next 100 lines from File B 
Next 100 lines from File C 
etc.
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
Assume you want to split file to c:\temp\1.txt, 2.txt, ... 
1. ctrl-h open replace window 
* set 'replace unit' to 'Paragraph' 
* click 'settings' tab: 
  set 'paragraph delimiters' to 'Fixed para lines':  
* click 'advanced' tab: 
  set 'run following for each matched unit' to: 
 
or 
 
2. click 'batch' button open 'batch runner' window 
3. drag multiple files to 'batch runner' window 
4. check 'set output filename', and set the entry to be blank(default is ${FILENAME} 
5. click 'batch replace', done.

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to split multiple text files, and append line N to N.txt (76%)
How to combine multiple pairs of text files line by line? (71%)
How to refine multiple text files by specified rules? (71%)
How to split a 100 line text file into 100 text files? (71%)
How to remove the last 3 lines of multiple text files all at once? (67%)
How to search/replace multiple text files base on rules from csv file? (65%)
How to split a large text file into small files with maximum 1000 lines? (65%)
How to replace strings in multiple text files with an increasing id start from 1? (64%)

Check Demo of Text file splitter
Keywords:
paragraph delimiters  delimiters  echo  paragraph delimiter  tea  system  fixed  split multiple  fix  splitter  batch splitting  text file splitter blank line  batch splitting text files  replace delimiters  batch file split output by blank line  splitting file  txt file splitter batch  txt splitter batch