User: ddumetz -- 2015-03-02 << 1282 1284 >> |
Hits: 3386 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
How to do following operations on multiple files? 0. delete everyline contain 'http' 1. Capitalize the first letter of each word in the first line. If there is no first line in text file use filename for first line 2. Remove blank lines between first line and second line if there is any 3. replace ". " with ". " at the end of each sentence 4. remove all (1) (2) ... 5. delete every blank line after last line |
Input Sample: |
when to seek medical care when trying to conceive Once a couple has decided to have a baby, each month brings with it anticipation and potential frustration. For those couples who have practiced six to 12 months of preconception planning further waiting even longer can be more frustrating. In these instances trying to conceive can turn from excitement to anxiety and even stress. (5) http://www.cdc.gov/reproductivehealth/Infertility/PDF/WhitePaper.pdf |
Output Sample: |
When To Seek Medical Care When Trying To Conceive Once a couple has decided to have a baby, each month brings with it anticipation and potential frustration. For those couples who have practiced six to 12 months of preconception planning further waiting even longer can be more frustrating. In these instances trying to conceive can turn from excitement to anxiety and even stress. |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. ctrl-o open text files 2. ctrl-h open replace dialogue * set 'replace with pattern' to: * click 'advanced' tab, set 'run following for each matched unit' to: 3. click 'replace', done. 4. for multiple files, click "batch..." button in step 3, drag multiple files to "Batch Runner" window, and click "Batch Replace", done. |
Screenshot 1: Replace_Window |
Screenshot 2: Replace_Advanced_Window |