| User: editor -- 2008-05-16 << 116 118 >> |
| Hits: 368 |
| 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 |