Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

244.Text file splitter -- How to split text file by number of bytes?

User: editor -- 2008-08-08          << 243  245 >>
Hits: 633
Type: Text file splitter   
Search all Text file splitter examples
Description:
How to split text file by number of bytes?
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
Assume you want to split to files with 1024 bytes:

############################################
For version 2.2 and newer, you can use following easier procedure:
1. ctrl-o open text file 
2. open menu "File->Save As->Split by bytes/lines" 
3. enter rule of output file name, and set split to 1024 bytes. 
4. click "next" 
5. select a output filename as base filename to save. 

############################################
For version 2.1 and older, procedures:

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:
 Bytes
* Change 'Split naming' rules as you like.

3. Click 'Replace', done!

Note: if you want to skip 10 bytes between each 1024 segments of 1024 bytes, you can use negative values. 1024,-10, will skip 10 bytes between each 1024 bytes.

Download Script:  scripts/244.rst.zip

Similar Examples:
How to sort the files by number, and batch rename them? (64%)
How to split a text file into multiple files with maximum 100k bytes? (63%)
How to split each line of text into 2 lines with same number of characters? (63%)
How to split a large text file into specified various number of lines? (63%)
How to add a fixed number on all hexadecimal bytes? (58%)
How to reverse a text file by characters? (58%)
How to sort a text file by the length of text in each line? (57%)
How to sort all the lines of a text file by order the multiple columns? (57%)

Check Demo of Text file splitter
Keywords:
skip  split naming  naming  path  split by line  rules  text file splitter  splitter  bytes  split file by  split file rules  number of bytes of text  split the text file by bytes  split bytes  file splitter bytes  text file splitter by bytes  split text files open source  text splitter open source