Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

522.Replace text in multiple files -- How to edit multiple files, move the first 3 lines of text to the bottom of file?

User: editor -- 2010-05-30          << 521  523 >>
Hits: 2905
Type: Replace text in multiple files   
Search all Replace text in multiple files examples
Description:
How to edit multiple files, move the first 3 lines of text to the bottom of file?
Input Sample:
line1 
line2 
line3 
line4 
line5 
... 
line100
Output Sample:
line4 
line5 
... 
line100 
line1 
line2 
line3
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 text files from "Windows File Browser" to "Batch Runner" window. 
3. click "Fast Replace" button, click "Add" to add new rules: 
* in "search" entry, enter: 
 
* in "replace" entry, enter: 
 
click "ok" 
4. make sure "Regular exp" and "Cross Line" options are selected, click "Start", all files will be modified.

Similar Examples:
How to convert multiple files from one encoding to another with online tool? (59%)
How to extract multiple webpages and save all text into text files? (59%)
How to extract and join line 1 and line2 and remove/delete rest of lines in a text file? (59%)
How to change multiple files, adding filename at the beginning of each file? (58%)
How to rename files to the first and last line of file contents? (57%)
How to replace or remove 3 lines randomly in a text file? (57%)
How to replace each xxx with the first word in the same line in text file? (57%)
How to delete the first word in each line in a text file? (57%)

Check Demo of Replace text in multiple files
Keywords:
modified  bottom  rules  cross line  rule  regular  regula  regular exp  the first  fast replace  edit multiple text files file  edit files  move lines in multiple files  replace text multiple file rules  search and replace multiple rules  add lines to multiple text files  add lines multiple files  add lines to multiple files