Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1217.Advanced search and replace -- How to batch replace files with specified format in each line?

User: basikabo -- 2014-07-09          << 1216  1218 >>
Hits: 1300
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to batch replace files with specified format containing directory of file?
Input Sample:
File D:\directory21\1.txt
has following content:

DATA1|||DATA2|||DATA3|||DATA4|||DATA5
DATA1|||DATA2|||DATA3|||DATA4|||DATA5
...
Output Sample:
D:\directory21\1.txt:

feng.zp directory21 /e /t /g DATA2\DATA3:F
feng.zp directory21 /e /t /g DATA2\DATA3:F
...


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 files to "Batch Runner" window
3. click "fast replace" button to 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 selected, and click "start".

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to add a space at the specific location of each line? (72%)
How to batch rename files to the specified pattern found in file content? (70%)
How to batch split file delimitered by first dash in each line? (70%)
How to search and replace words in specified column in csv file? (70%)
How replace the words with specified format by adding a number? (69%)
How to batch split file delimitered by second comma in each line? (69%)
How to batch rename files by changing specified part separated by dash? (67%)
How to search and replace text for specified occurrences with reg exp? (66%)

Check Demo of Advanced search and replace
Keywords:
dirname  basename  specified format  directory  dir  containing  cross line  rule  specified  format  directory format  each file in directory batch  batch file each file in directory  multiple directory  add words each line  batch file to replace files in directory  line add words  specified words