| User: editor -- 2008-12-10 |
| Hits: 213 |
| Type: Text file splitter |
| Search all Text file splitter examples |
| Description: |
| How to operate on multifiles, split each of them to small files with tag <rubrik> as start line? |
| Input Sample: |
| File1.txt <rubrik> 1 ... <rubrik> 2 ... File2.txt <rubrik> 3 ... <rubrik> 4 ... ... |
| Output Sample: |
| File1_001.txt: <rubrik> 1 ... File1_002.txt: <rubrik> 2 ... File2_001.txt: <rubrik> 3 ... File2_002.txt: <rubrik> 4 ... ... |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" to finish following steps. |
| 1. ctrl-h open "Replace" dialog: Click "Settings" page: * set "Para start" to: * set "Para end": select None * change "Split Naming" to: * Change to symbol ">" to the left of the "Output File" window at the right bottom, select "<< Split by Paragraph" 2. Click "Batch..." button to open "Batch Runner": * Click "Pick Files" or "Search Files" to select multiple files. * Click "Change Output Folder" if you want to put it to another folder(the folder must exist) * Click "Batch Replace", done! Note: How to use script 305.rst? A) open script Just select "Replace -> Replace by Script" menu, and open file "305.rst". B) take care of Encoding type Click "Settings" page, check if "Input Encoding" and "Output Encoding" match your files, change it if necessary. C) Batch Replace, follow step 2 above. D) Note that above only do file splitting, no replace happen, so just ignore "totally 0 units changed/selected" info at bottom. |
| Download Script: scripts/305.rst.zip |
Similar Examples: |
| How to replace adjacent multiple spaces in a text files into one tab? (49%) How to sort the lines in a text files by the order of line length? (49%) How to split a large text file into small files with maximum 1000 lines? (49%) How to remove the last 3 lines of multiple text files all at once? (47%) How to extract tables from html files into csv file automatically? (47%) How can I replace the 3rd lines of many files to a fixed string? (47%) How to extract titles of all html files and save them to one file? (46%) How to simulate the specified BER(bit error rate) on text file with 0 and 1 only? (45%) |
Check Demo of Text file splitter |