User: editor -- 2012-06-28 << 963 965 >> |
Hits: 3730 |
Type: Random word generator |
Search all Random word generator examples |
Description: |
How to extract 3 lines from each file randomly? There are many text file, each one has a lot of lines, how to randomly extract 3 lines from each file and write to a new output file? |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. open "Tools->Batch Runner" menu 2. drag multiple text files to "Batch Runner" window 3. click "Fast Replace" button open "Fast Replace" dialogue 4. click "Add" to add new rule: * set "search" to blank * set "replace" to: * click "ok" 5. make sure "reg exp" and "cross line" are checked. 6. click "start" button, and click "output to single file" button, and select an output file, done. |
Screenshot 1: Fast_Replace_Window |