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: 2874
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 move the specified line to the end in multiple files? (75%)
How to remove the last 3 lines of multiple text files all at once? (74%)
How to add empty line at begin of multiple files? (73%)
How to insert a text file into the beginning of multiple text files? (72%)
How to make line by line sequential merge of multiple text files? (71%)
How to move a string from the beginning of the line to the end of the line? (71%)
How to remove/delete extra blank lines in multiple text files? (70%)

Check Demo of Replace text in multiple files
Keywords:
last line  cross line  the last  last  beginning  las  begin  regular  regula  regular exp  move last line  text to beginning to multiple text files  move line multiple files  line last  beginning line  make multiple files  move files  move line