User: Aaron -- 2015-10-08 << 1317 1319 >> |
Hits: 3098 |
Type: Text generator |
Search all Text generator examples |
Description: |
This is a request for a batch script that converts a folder of standard text files into a single spintax document. Spintax format is: {first text line|next text line|another text line|last text line} 1. All texts are in a single folder. 2. Script extracts each line in sequence from each file and outputs to single spintax document. |
Input Sample: |
File A: File A line 1... File A line 2... File A line 3... File A line 4... etc. File B: File B line 1... File B line 2... File B line 3... File B line 4... etc. File C: File C line 1... File C line 2... File C line 3... File C line 4.. etc. File D: File D line 1... File D line 2... File D line 3... File D line 4.. etc. |
Output Sample: |
Output Spintax file format: {File A line 1...|File B line 1...|File C line 1...|File D line 1...} {File A line 2...|File B line 2...|File C line 2...|File D line 2...} {File A line 3...|File B line 3...|File C line 3...|File D line 3...} {File A line 4...|File B line 4...|File C line 4...|File D line 4...} |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. ctrl-h open 'replace' dialogue * change the ">" symbol before "output file" to: ">>> Column Append" * click "settings" tab: set "output delimiter to "other", and change the following entry to: 2. click "batch" button open "batch replace" window * click "pick files" to pick multiple files in the folder * check option of "set output filename", and change the following entry to: 3. click "batch replace", done. 4. ctrl-o open 'output.txt' 5. ctrl-h open 'replace' dialogue * set 'replace unit' to 'Line' * set 'replace with pattern' to: 6. click 'replace', done 7. ctrl-s save to file |
Screenshot 1: Replace_Window |
Screenshot 2: Replace_Settings_Window |
Screenshot 3: Replace_Window |
Similar Examples: |
How to refine multiple text files by specified rules? (74%) How to convert a text file to specified format? (67%) How to extract and join text from multiple files with user defined format? (65%) How to convert each line of a text file to the new format? (62%) How to change each line of data to the specified format? (61%) How to insert a keyword only at first line of multiple text files? (61%) How to convert multiple text files to html files with self-defined format? (61%) How to replace strings in multiple text files with an increasing id start from 1? (60%) |
Check Demo of Text generator |
Keywords: |
column append batch script specified format tax document doc symbol sym line next script sequence batch text generator filename first line of document batch file extracts match from txt file change text in multiple files script filename format generator single line text generator batch first and last line join text to single line |