Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1414.Text file splitter -- How to split text file by about 200 chars without breaking line?

User: vlad -- 2018-02-02          << 1413  1415 >>
Hits: 1367
Type: Text file splitter   
Search all Text file splitter examples
Description:
How to split text file by about 200 chars without breaking line?
Input Sample:
012-041-011-7,
012-690-078-5,
012-770-083-7,
012-740-006-1,
012-328-015-2,
012-170-059-6,
0129-023-003,
0124-017-006,
0126-009-060,
0125-018-016,
0122-021-014,
0124-005-004,
0128-034-013,
0126-032-056,
0125-012-010,
0126-011-003,
0124-004-011,
0124-011-014,
0120-024-018,
0129-015-006,
0120-028-002,
0121-073-012,
0122-013-028,
0128-038-025,
0123-016-023,
0127-014-010,
0123-034-027,
0120-012-003,
0123-011-024,
0129-036-002,
0127-016-025,
0127-013-029,
0120-022-054,
0129-006-
Output Sample:
output_001.txt:
012-041-011-7,
012-690-078-5,
012-770-083-7,
012-740-006-1,
012-328-015-2,
012-170-059-6,
0129-023-003,
0124-017-006,
0126-009-060,
0125-018-016,
0122-021-014,
0124-005-004,
0128-034-013,
0126-032-056,

output_002.txt:
0125-012-010,
0126-011-003,
0124-004-011,
0124-011-014,
0120-024-018,
0129-015-006,
0120-028-002,
0121-073-012,
0122-013-028,
0128-038-025,
0123-016-023,
0127-014-010,
0123-034-027,
0120-012-003,
0123-011-024,

output_003.txt:
...

Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source text file
2. ctrl-h open 'replace' dialog:
* set 'search for pattern' to:

* set 'replace with pattern' to:

* set 'output file' to:

* change '>' mark to the left of 'output file' to:

3. click 'replace', file will be split to d:\test\output_*.txt

Screenshot 1:  Replace_Window


Similar Examples:
How to limit a text file to less than 40 chars each line? (66%)
How to sort the text file by the date at the beginning of each line? (61%)
How to wrap text by adding return but without breaking words? (59%)
How to split a text file with specified start and end line and name? (57%)
How to split multiple text files by 100 lines? (56%)
How to extract the first 10 and last 10 characters from each line? (56%)
How to split text file by number of bytes? (56%)
How to add hard returns to limit line length to 40, but without breaking word? (56%)

Check Demo of Text file splitter
Keywords:
without break  about  mark  split by paragraph  break  200  without  splitter  text file splitter  paragraph  paragraph mark  file splitter paragraph  text paragraph splitter  paragraph splitter  text splitter by paragraph  paragraph text splitter  text splitter open source  text file splitter open source