User: leestudley -- 2013-07-31 << 1111 1113 >> |
Hits: 3497 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
collect all files under a given named sub-directories( ie \SYM\ ) and keep duplicates with appended name ie xxxx(2) |
Input Sample: |
prj\sym\YfileA.1 prj\sym\XfileB.1 frog\prj\sym\XfileB.1 frog\prj\sym\Xfiled.1 |
Output Sample: |
common\sym\YfileA.1 common\sym\XfileB.1 common\sym\XfileB(1).1 common\sym\Xfiled.1 |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
######## Getting file list ########### Assume d:\test\ folder is the root folder for all folders. 1. ctrl-h open 'replace' dialogue * set 'replace unit' to 'Line' * set 'search for pattern' to: * set 'replace with pattern' to: * uncheck 'print unmatched unit' option * set "input file" entry to: 2. click 'replace', all files in sym or SYM under d:\test will be listed 3. ctrl-s save the list to "list.txt" ######## Rename and Copy files ########### 4. open "Tools->Batch Runner" window 5. click "Import List" button to import list.txt 6. click title of "Input File", make sure files are sorted 7. check "set output file" option, set following entry to: 8. check "Change output foler", set following entry to: 9. click "Copy/Download" button, done! |
Screenshot 1: Replace_Window |
Screenshot 2: Batch_Runner_Window |