Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

748.Advanced search and replace -- How to delete all lines appear in file B from file A?

User: bruce lee -- 2011-03-26          << 747  749 >>
Hits: 2303
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to delete all the content that appear in file A and B in file A ? 
and save file A 
Input Sample:
file A: 
line1  
line2  
line3  
line4 
 
file B 
line2  
line4  
line6
Output Sample:
FILE A:  
line1  
line3
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
Assume file B.txt is in folder d:\test\ 
1. ctrl-o open file A 
2. ctrl-h open 'replace' window 
* set 'replace unit' to 'Line' 
* set 'If' to: 
 
3. click 'advanced' page 
* set 'run following at the beginning of replace' to: 
 
4. click 'replace', done. 
 
Note: should use double backslash for path name like: d:\\test\\B.txt 
Need replace pioneer version 2.58 and above to support function import_values

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to remove all the lines appeared in file B,C,D from file A? (83%)
How to delete from FILE A all lines that appear in file B? (78%)
How to re-group all lines in a file by a wordlist file? (66%)
How to delete/remove all lines that appearred more than once? (64%)
How to get the values from all lines of txt file and generate html files? (62%)
How to delete duplicate lines of a text file? (62%)
How to delete all the lines with the '*' char? (61%)
How to delete all the lines without ceramics in text file? (61%)

Check Demo of Advanced search and replace
Keywords:
how to delete all the content that appear in file a and b in file a  toc  backslash  double  path  slash  support  delete all lines  import  function  replace pioneer backslash  lines function  file and folder search pioneer  delete folder  folder path  double lines  replace pioneer support  delete name