Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

862.Replace text in multiple files -- How to remove all the lines appeared in file B,C,D from file A?

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


Similar Examples:
How to delete all lines appear in file B from file A? (83%)
How to re-group all lines in a file by a wordlist file? (65%)
How to delete from FILE A all lines that appear in file B? (64%)
How to delete/remove all lines that appearred more than once? (63%)
How to rename all the files by adding the file size after filename? (63%)
How to rename all the files by appending the calculated file  
size?
(62%)
How to remove the trailing blank lines in the end of file? (62%)
How to remove the last 3 lines of multiple text files all at once? (61%)

Check Demo of Replace text in multiple files
Keywords:
toc  pages  support  filenames  define  fine  remove all the lines  key  import  names  lines under  lines function  filenames text  filenames to text file  remove all lines multiple  remove multiple lines in text  remove filenames  remove lines multiple files