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
Hits: 241
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" 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 large text file into specified various number of lines? (63%)
How to reverse a text file by characters? (58%)
How to sort all the lines of a text file by order the multiple columns? (57%)
How to sort the lines in a text files by the order of line length? (57%)
How to sort all the lines of a text file randomly? (56%)
How to change all the letters in a text file to upper cases? (55%)
How to split a large text file into small files with maximum 1000 lines? (55%)

Check Demo of Text file splitter