Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1148.Replace text in multiple files -- How to remove everything after specified strings in text files?

User: Aaron -- 2013-11-22          << 1147  1149 >>
Hits: 4615
Type: Replace text in multiple files   
Search all Replace text in multiple files examples
Description:
How to remove long Project Gutenberg notice in text files? 
 
These notices usually start with the phrase: End of Project Gutenberg's ... etc.   
and continue for many paragraphs until end of text file. 
 
I would like to remove all these notices.
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 files from windows file browser to "Batch Runner" window 
3. click "Fast Replace" button to open "Fast Replace" dialogue 
4. click "Add" to add replace rules: 
* set "search" to: 
 
* keep "replace" to be blank 
* click "ok" 
5. make sure "reg exp" option is checked, and click "Start", done.

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to remove everything but specified strings between begin and end? (77%)
How to remove everything after the second specified keywords in each line? (75%)
How to remove everything after the first comma in each line in a text file? (75%)
How to batch rename files by remove everything after specificed string? (72%)
How to remove all lines that contain some specific strings in a text file? (72%)
How to insert a line after specific lines in a text file? (71%)
How to remove lines containing specified words in a text file? (69%)
How to remove everything after dash/underscore for multiple filenames? (69%)

Check Demo of Replace text in multiple files
Keywords:
everything after  remove everything after  paragraphs  remove everything  phrase  strings  paragraph  paragra  keep  rules  keep after  add text to phrase  text remove everything after  text file remove everything after  remove paragraphs  replace paragraphs in multiple files  remove everything after file  remove text from many files