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: 370
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 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%)
How to combine multiple vcard file(vcf) into one single text/csv file? (56%)
How to rename mutiple files with the 3rd and 4th line in file content? (56%)

Check Demo of Replace text in multiple files
Keywords:
rules  cross line  fast replace  fast  fas  first  windows  rst  regula  row  edit multiple text files file  move lines in multiple files  replace text multiple file rules  multiple rules  replace multiple rules  multiple rules replace  add lines multiple files  text replace rules