Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

861.Replace text in multiple files -- How to add words at the begin and end of first line in multiple files?

User: Eric -- 2011-09-26          << 860  862 >>
Hits: 2719
Type: Replace text in multiple files   
Search all Replace text in multiple files examples
Description:
Add mywords to begin and end of first line of first paragraph
Input Sample:
#FILE 1#
This is the first line of first 
paragraph
...

#FILE 2#
This is the first line of first 
paragraph
...
Output Sample:
#FILE 1#
[mywords]This is the first line of 
first paragraph[mywords]
...

#FILE 2#
[mywords]This is the first line of 
first paragraph[mywords]
...
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. open "Tools->Batch Runner" window
2. drag multiple text files from "windows file browser" to "batch runner" window
3. click "Fast Replace" button to open "Fast Replace" window
* click add to add a replace rule:
set 'search' to:

set 'replace' to:

* click 'ok'
* make sure 'reg exp' option is checked
4. click 'start' and 'ok', done.

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to insert a keyword only at first line of multiple text files? (70%)
How to add a timestamp at the beginning of multiple text files? (68%)
How to attach the md5 sum to the end of filename for multiple files? (68%)
How to add empty line at begin of multiple files? (67%)
How to replace strings and numbers with new format in multiple files? (63%)
How to remove first number in each line for multiple files? (63%)
How to remove/delete first column for multiple files? (63%)
How to make base64 encoding on multiple files? (63%)

Check Demo of Replace text in multiple files
Keywords:
chm  end of first line  paragraph  paragra  add words  rules  add word  para  rule  first line  add begin of first line  paragraph replace text batch  batch replace paragraph in text  add text to end of line multiple files  add text to the end of a multiple file windows  first line paragraph  add text to end of multiple files  batch add text to the end line