Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1069.Text file splitter -- How to split a file into many files according to first letter of each line?

User: lili -- 2013-04-02          << 1068  1070 >>
Hits: 3910
Type: Text file splitter   
Search all Text file splitter examples
Description:
The first letter in each row to form a new file is extracted
Input Sample:
a.txt 
123 
122 
234 
345 
 
Output Sample:
b.txt 
123 
122 
c.txt 
234 
d.txt 
345
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file 
2. ctrl-h open 'replace' dialogue 
* set 'replace unit' to 'Line' 
* in 'search for pattern', enter: 
 
* click "advanced" tab    
set "run following for each matched unit" to:   
 
3. click 'Replace', the files will be generated in folder: d:\test\, the filename will be the first_letter.txt of the line.

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to split a text file to different files according to first word in each line? (81%)
How to split a text file to different files according to first word in each line? (81%)
How to split a text file according to first word in each line? (80%)
How to split a csv file into multiple files according to value of column B? (69%)
How to split a file into two parts according to the content of line? (68%)
How to split a single line into many lines, keep two words for each line? (67%)
How to split a file into many files by chapters, and use Chapter names as filenames? (65%)
How to batch split file delimitered by first dash in each line? (64%)

Check Demo of Text file splitter
Keywords:
plit a file into many files  split a file into many files  first letter  file into many files  extracte  var  splitter  text file splitter  acc  letter  split each line into a new file  advanced text file splitter  advanced text splitter  split according to first  search first line of many files  split text file according to  file split according to text  split file according to line