User: Lang -- 2011-03-03 << 730 732 >> |
Hits: 3442 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
find all lines in file a that contain words in file b £¬with the sequence of words in file b£¬not file a¡£ |
Input Sample: |
file a : i love buffalo aaa the line contain zzz the line contain ccc the line contain aaa again the line contain bbb the line contain none key words file b: aaa bbb ccc zzz |
Output Sample: |
i love buffalo aaa the line contain aaa again the line contain bbb the line contain ccc the line contain zzz |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. ctrl-o open file b.txt 2. ctrl-h open replace window * set 'replace unit' to 'Line' * set 'replace with pattern' to: * click "Advanced Page": set 'run following at the beginning of replace' to: (assume file a.txt is in d:\test\ folder) * set 'run following for each matched unit' to: 3. click 'replace', done! 4. ctrl-s save to new file. |
Screenshot 1: Replace_Window |
Screenshot 2: Replace_Advanced_Window |