Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

816.Replace text in multiple files -- How to insert 100 different lines into the beginning of 100 text files?

User: editor -- 2011-07-06          << 815  817 >>
Hits: 3806
Type: Replace text in multiple files   
Search all Replace text in multiple files examples
Description:
How to insert 100 different lines into the beginning of 100 text files?
Input Sample:
line1
line2
line3
...
line100
Output Sample:
---------------------
File1:
line1
original lines ...
---------------------
File2:
line2
original lines ...
---------------------
...

---------------------
File100:
line100
original lines ...
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
Assume the 100 different lines are saved in a text file: d:\test\lines.txt
1. open "Tools->Batch Runner" menu
2. drag multiple files from "windows file browser" to "Batch Runner" window
3. click "Fast Replace" button
* click "Add" to add a rue
* set "Search" to:

* set "Replace" to:

where lines.txt is filename, d:\test\ is the path
* click "ok"
4. make sure "Reg exp" and "Cross Line" options are selected, and click "Start"
5. click "Yes" to make the replace, done.

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to insert a text file into the beginning of multiple text files? (76%)
How to join every n lines into 1 line in a text file? (68%)
How to batch insert the filename into the beginning of the file conent? (66%)
How to join same language lines into 1 line in a text file? (64%)
How to move the last line to the beginning for multiple text files? (63%)
How to split a 100 line text file into 100 text files? (62%)
How to insert 3 to 10 words "ABC" into random position in a text file? (60%)
How to insert a blank line after every 5 lines in a text file? (60%)

Check Demo of Replace text in multiple files
Keywords:
100 different lines  how to insert 100 different lines into the beginning of 100 text files  100 text files  path  cross line  test  100  beginning  different  how to insert  insert different text into multiple files  add text into beginning of multiple lines  windows insert filename into text file  windows insert text into multiple files  windows insert text beginning of a file  insert filename into text file multiple files  insert filename into text file  insert multiple lines into text file