User: bruce lee -- 2011-06-30 << 810 812 >> |
Hits: 4713 |
Type: Text file parser |
Search all Text file parser examples |
Description: |
how to extract all the lines contained in file A,B,C and D?And delete the common content from A,B,C and D? |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
Steps to extract common lines from multiple files: 1. ctrl-h open 'replace' dialog * set 'replace with pattern' to: * click 'advanced' tab, set 'run following for each matched unit' to: 2. click 'Batch...' button open 'batch runner' 3. drag multiple files A,B,C,D to batch runner window 4. change 'set output filename' to blank so no file will be written. 5. click 'batch replace', common lines will be extracted 6. ctrl-s save common line to common.txt Steps to remove common line in multiple files: 7. ctrl-h open 'replace' dialog * set 'replace unit' to 'Line' * set 'If' to: 8. click 'Batch...' button, and drag multiple files to batch runner window, set output filename to ${FILENAME}, 9. click 'Batch Replace'. |
Screenshot 1: Extract common line, 'replace': |
Screenshot 2: Extract common line, 'advanced': |