User: editor -- 2008-08-14 << 248 250 >> |
Hits: 5394 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
How to batch insert the filename into the beginning of the file conent? |
Input Sample: |
A.txt: line1 line2 B.txt: line1 line2 |
Output Sample: |
A.txt: A.txt line1 line2 B.txt: B.txt line1 line2 |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. ctrl-h open "Replace" dialog * select "Advanced" page set insert begin text to: 2. click "Batch..." to open Batch Runner dialog 3. click "Pick Files" and select multiple files for processing. 4. click "Batch Replace", each filename will be added to the beginning of each file. |
Screenshot 1: Replace_Advanced_Window |