Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1375.Advanced search and replace -- How to remove all lines that can be found in another file?

User: editor -- 2016-07-17          << 1374  1376 >>
Hits: 997
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to remove all lines that can be found in another file?
Input Sample:
File d:/test/A.txt:
aaa
bbb
ccc
ddd
ccc fff

File d:/test/Removed List.txt:
aaa
ccc
Output Sample:
Output file: d:/test/B.txt
bbb
ddd
ccc fff
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file
2. ctrl-h open 'replace', dialogue
* set 'replace unit' to 'Line'
* set 'if' to:

click 'advaned' tab, set 'run following at the beginning of replace' to:

3. click 'replace', done.

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to remove all lines that contain some specific strings in a text file? (72%)
How to remove all the lines that with odd line number for multiple files? (70%)
How to remove all lines that have duplicate contents in CSV files? (69%)
How to remove all lines that contain ABC but not contain DEF in text file? (68%)
How to remove all lines that contain one or more words in a list? (67%)
How to remove all lines that are not ended with word "ok" or "done"? (67%)
How to extract all lines that contain specific words in a file? (66%)
How to remove the trailing blank lines in the end of file? (66%)

Check Demo of Advanced search and replace
Keywords:
grep  found  another file  remove all lines  test  remove all line  beginning  at the beginning  content  split n  remove text at beginning  remove txt  replace another  remove all text following  remove all the lines  split text file lines  lines split  split lines