Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1283.Advanced search and replace -- How to refine multiple text files by specified rules?

User: ddumetz -- 2015-03-02          << 1282  1284 >>
Hits: 3247
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


Similar Examples:
How to join corresponding line of multiple text files with specified format? (74%)
How to split multiple text files by 100 lines? (68%)
How to insert mulitple text files into multiple html files? (68%)
How to change text file format with user specified rules? (68%)
How to create some copies of 2 files with specified names? (67%)
How to replace text files using multiple pre-defined rules? (66%)
How to convert a text file to specified format? (66%)
How to move and rename files from multiple folder with specified order? (65%)

Check Demo of Advanced search and replace
Keywords:
capital  cap  ucfirst  remove blank lines  first letter  remove blank line  remove blank  sentence  200  blank lines  batch file text operations  batch for remove last line  text operations in batch file  match operations in batch file  text file operations batch  split every second line  batch file text file operations  batch text operations