Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1235.Replace text in multiple files -- How to batch insert part of the filename into the file content?

User: Michel Marquis -- 2014-08-23          << 1234  1236 >>
Hits: 1244
Type: Replace text in multiple files   
Search all Replace text in multiple files examples
How to batch insert the filename into the beginning of the file content on 2 first lines. Filename before '-' First line and filename after '-' on the second line. One line space, And without the extension(.txt)
Input Sample:
Replace pioneer - Test text.txt

This is the content of the text
I need to modify
Output Sample:
Replace Pioneer - Test text.txt

Replace Pioneer
Test text

This is the content of the text
I need to modify
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 files from windows file browser to "Batch Runner" window
3. click "Fast Replace" button open "Fast Replace" dialogue
4. click "add" to add new rule
* set "search" to: 

* set "replace" to:

* click "ok"
5. make sure "reg exp" and "cross line" options are checked, and click "start", done.

Screenshot 1:  Fast_Replace_Window

Similar Examples:
How to batch insert the filename into the beginning of the file conent? (82%)
How to batch insert file name in the text? (73%)
How to batch rename last part of filenames to the strings from a file? (70%)
How to batch rename files with the first word of file contents? (67%)
How to insert first 7 characters of filename into the end HTML file? (63%)
How to batch rename text files with random line from file contents? (62%)
How to batch insert filename at start/beginning of each lines? (60%)
How to batch rename files from file content after Title and Author? (59%)

Check Demo of Replace text in multiple files
extension  batch insert  without  second line  before  second  bef  befor  cross line  after  batch file without extension  batch filename without extension  filename without extension batch  batch file filename without extension  file extension part  add part of filename to multiple text files  replace add space filename  space content