Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

117.Advanced search and replace -- How to make batch operations for following file list?

User: editor -- 2008-05-16          << 116  118 >>
Hits: 1525
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to make batch operations for following file list?
Input Sample:
c:\test\file1
c:\test\file2
c:\test\file3
Output Sample:
@echo off
attrib -s -h -r "c:\test\file1" 
del "test\file" /F
attrib -s -h -r "c:\test\file2" 
del "test\file" /F
attrib -s -h -r "c:\test\file3" 
del "test\file" /F

@echo done!
pause
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source file
2. ctrl-h open 'Replace' dialog:
in 'Replace' page:
* set 'Replace Unit' to 'Line'
* set 'Search for pattern':

* set 'Replace with Pattern':

in 'Advanced' page:
* set 'insert begin text':

* set 'insert end text':

3. click 'Replace', ok!
Download Script:  scripts/117.rst.zip

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to batch add pathname and extension for filename list? (57%)
How to batch uudecode a lot of files? (57%)
How to make multiple copies of a file and rename them from a list? (55%)
How to batch rename text files with random line from file contents? (55%)
How to replace all "ID" in following xml file with increased ID? (55%)
How to make a batch replacement according to a text mapping file? (55%)
How to extract all commands from operation log file in unix platform? (54%)
How to batch remove/delete first 8 lines of many files? (54%)

Check Demo of Advanced search and replace
Keywords:
echo  insert end text  insert end  insert begin text  insert begin  operation  insert  chars  begin  del  list operations batch  list file operations  batch file operations  operations list file  file list operations  batch file file operations  replace operations  batch insert