User: bruce lee -- 2011-09-27 << 861 863 >> |
Hits: 3497 |
Type: Replace text in multiple files |
Search all Replace text in multiple files examples |
Description: |
How to remove all the lines contained file B,C,D from file A? |
Input Sample: |
file A: AAAA BBBB CCCC DDDD file B: BBBB file C: CCCC file D: DDDD |
Output Sample: |
file A: AAAA |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
Assume all files are under d:\test\, the filenames are a.txt, b.txt, c.txt, d.txt 1. ctrl-o open a.txt 2. ctrl-h open 'replace' window * set 'replace unit' to 'Line' * set 'if' entry to: * click 'Advanced' page: set "run following at the beginning of replace" to: 3. click 'Replace', done! Note: above function is not supported for version earlier than 2.58. |
Screenshot 1: Replace_Window |
Screenshot 2: Replace_Advanced_Window |