Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

188.Text file splitter -- How to split a file by specified number of lines like 10,20,30,20,20,20 ...?

User: editor -- 2008-06-13          << 187  189 >>
Hits: 462
Type: Text file splitter   
Search all Text file splitter examples
Description:
How to split a file by specified number of lines like 10,20,30,20,30,20 ...?
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source file
2. ctrl-h open 'Replace' dialog
* Enter full path name for output file at "Output File" entry at right bottom.
* Change ">" to "< split by line/bytes" at the left of output file.

Click 'Settings' page:
* Change 'Split file by' to:
 Lines
* Change 'Split naming' rules as you like.

3. Click 'Replace', done!

Note: if you want to skip some lines, you can use negative values. 10,20,-10,30,20 will skip 10 lines between file2 and file3.
Download Script:  scripts/188.rst.zip

Similar Examples:
How to split a large text file into specified various number of lines? (61%)
How to replace word 'abc' to 'def' in specified lines like 1-10,18,20? (57%)
How to split text file by number of bytes? (53%)
How to shuffle specified lines in multiple text files? (51%)
How to remove/delete specified lines such as 1,2,3 and 9,11,13,15,... in a text file? (49%)
How to split a text file into multiple files with maximum 100k bytes? (48%)
How to find out all lines that appeared specified number of times? (48%)
How to split a CSV file with Header according to value of a column? (47%)

Check Demo of Text file splitter
Keywords:
skip  split naming  naming  path  split by line  rules  10 lines  splitter  text file splitter  bytes  split file rules  between lines  split by lines  split lines  if right  between and  split the file  output file name