Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

877.Text file splitter -- How to split a text file into multiple files and take the date as filename?

User: editor -- 2011-10-21          << 876  878 >>
Hits: 2132
Type: Text file splitter   
Search all Text file splitter examples
Description:
How to split a text file into multiple files and take the date as filename?
Input Sample:
=========================
original file:
 1 of 211 DOCUMENTS
 Wyoming Tribune-Eagle (Cheyenne)
 January 20, 2006 Friday
 ... ...
 2 of 211 DOCUMENTS
 Wyoming Tribune-Eagle (Cheyenne)
 February 6, 2006 Monday
 ... ...
 3 of 211 DOCUMENTS
 Wyoming Tribune-Eagle (Cheyenne)
 February 24, 2006 Friday
 ...

Output Sample:
===========================
file1: 01202006_1.txt
1 of 211 DOCUMENTS
 Wyoming Tribune-Eagle (Cheyenne)
 January 20, 2006 Friday
 ... ...
===========================
file2: 02062006_2.txt
2 of 211 DOCUMENTS
 Wyoming Tribune-Eagle (Cheyenne)
 February 6, 2006 Monday
 ... ...
===========================
file3: 02242006_3.txt
3 of 211 DOCUMENTS
 Wyoming Tribune-Eagle (Cheyenne)
 February 24, 2006 Friday
 ...

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' window
* set 'search for pattern' to:

* set 'replace with pattern' to:

* set 'output file' to a file in the output folder:

* change the "<" at the left of 'output file' to "<< split by paragraph"
* click "settings" tab
* set "paragraph delimiter>>para start" to 'other':

* set "paragraph delimiter>>para end" to 'none'
3. click 'Replace', done.

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Settings_Window


Similar Examples:
How to split a text file into multiple files evenly on size? (80%)
How to split a text file into multiple files with maximum 100k bytes? (77%)
How to split a file into multiple files with ======= as separator? (71%)
How to split a file into many files by chapters, and use Chapter names as filenames? (69%)
How to replace file content in multiple files with corresponding filename? (67%)
How to split a csv file into multiple files according to value of column B? (66%)
How to extract first line from multiple files and generate a new file? (65%)
How to split one text/html into mutiple  files by the special tag like <hr />? (64%)

Check Demo of Text file splitter
Keywords:
ddd  paragraph delimiter  how to split a text file into multiple files  split a text file into multiple files  split by paragraph  how to split a text file into multiple  split a text file into multiple file  document  formattime  doc  text file splitter by date  split date  file splitter paragraph  text paragraph splitter  paragraph splitter  text splitter by paragraph  paragraph text splitter  text splitter in paragraph