Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1080.Text file splitter -- How to save every 8 lines to a new file and skipping 2 lines after?

User: editor -- 2013-05-21          << 1079  1081 >>
Hits: 1361
Type: Text file splitter   
Search all Text file splitter examples
Description:
How to split a large text files, save line 1-8, 11-18, 21-28, ... to different files, and skip/ignore lines 9-10, 19-20, 29-30, ...
Input Sample:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
...
Output Sample:
file 1.txt:
1
2
3
4
5
6
7
8
2.txt:
11
12
13
14
15
16
17
18
file 3.txt:
21
22
...
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file
2. open menu "File->Save as->Split by Line"
Set "split file by" to:
 Lines
move mouse point around this entry, you will see a hint message of 8,(2),8,(2),8,(2),...., which means save 8 lines and skip 2 lines repeately.
3. click "Next", and select a base file such as a.txt, then click "ok", the output files will be a.001.txt, a.002.txt, ..., done.

Similar Examples:
How to split a file by every 100 lines, and put every 50 files into one folder? (60%)
How to take every line from file A and file B and calculate summary? (59%)
How to merge odd lines from file1 and even lines from file2? (58%)
How to save specified lines of text file into different files? (58%)
How to sort the lines in a text files by the order of line length? (58%)
How to get a N*M lines file, given a N-line file and a M-line file? (57%)
How to match same lines between 2 files and combine the line followed? (56%)
How to update values in xml file according to values from another xml? (55%)

Check Demo of Text file splitter
Keywords:
a001  how to split a large text file  round  ignore lines  skip  large text  tel  repeat  split by lines  ignore line  split text file save lines different files  8 skip 2 splitter  large text file splitter  skip lines  split large text files  split large text file  split large file  split a large file