Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

627.Text file parser -- How to remove all lines in file b.txt that appearred in a.txt?

User: editor -- 2010-10-11          << 626  628 >>
Hits: 2552
Type: Text file parser   
Search all Text file parser examples
Description:
How to remove all lines in file b.txt that appearred in a.txt?
Input Sample:
a.txt: 
111 
222 
333 
 
b.txt: 
444 
555 
666 
222 
333 
999
Output Sample:
b.txt 
 
444 
555 
666 
999 
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
Assume the full path of a.txt is d:\test\a.txt 
1. ctrl-o open b.txt 
2. ctrl-h open 'replace' window 
* set 'replace unit' to 'Line' 
* set 'if' to: 
 
* click 'Advanced' page: 
set 'run following at the beginning of replace' to: 
 
3. click 'Replace', done! 
 
Note: for version before 2.58, import_values function is not supported, please refer to following procedure: 
 
http://www.mind-pioneer.com/services/616_Text_file_parser.html

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to delete/remove all lines that appearred more than once? (69%)
How to remove all lines that contain one or more words in a list? (62%)
How to remove all blank lines and lines that started with Name: or Addr:? (62%)
How to remove all line breaks that come after the backslash? (60%)
How to find all lines in file A that contain words in file B? (60%)
How to remove all c++ comments that started with //? (59%)
How to delete from FILE A all lines that appear in file B? (59%)
How to remove all question mark that enclosed by title tags? (57%)

Check Demo of Text file parser
Keywords:
toc  pages  path  support  refer  full  define  fine  key  import  remove all lines before  remove path  lines function  remove before  file path  replace all before  remove all the lines  remove lines all