Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

667.Replace text in multiple files -- How to move the last line to the beginning for multiple text files?

User: editor -- 2010-11-29          << 666  668 >>
Hits: 547
Type: Replace text in multiple files   
Search all Replace text in multiple files examples
Description:
How to move the last line to the beginning for multiple text files?
Input Sample:
#### first line #######
....
...
#### last line #######
Output Sample:
#### last line #######
#### first line #######
....
...
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 text files from "Windows" to "Batch Runner" window
3. click "Fast Replace" button
* click "Add", in "Search" enter:

* in "Replace', enter:

* click "ok"
* make sure "regular exp" and "cross line" options are selected, click "Start", done!

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to add a timestamp at the beginning of multiple text files? (79%)
How to remove the last 3 lines of multiple text files all at once? (74%)
How to insert a text file into the beginning of multiple text files? (72%)
How to move a string from the beginning of the line to the end of the line? (71%)
How to extract the last non-blank line from multiple text files? (70%)
How to move a string from the end of the line to the beginning of the line? (67%)
How to remove leading spaces and tabs in each line in multiple text files? (67%)
How to remove additional line breaks from multiple files? (67%)

Check Demo of Replace text in multiple files
Keywords:
last line  cross line  last  beginning  las  fast replace  fas  begin  fast  regular  move last line  line last  beginning line  make multiple files  move files  move line  multiple line  move text