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: 179
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 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 remove the last 3 lines of multiple text files all at once? (61%)
How to remove all lines in file b.txt that appearred in a.txt? (60%)
How to find out all lines that appeared specified number of times? (60%)
How to remove/delete all lines with even line number? (59%)

Check Demo of Replace text in multiple files
Keywords:
filenames  pages  toc  fine  define  support  key  test  names  import  lines function  filenames text  filenames to text file  remove multiple lines in text  remove text at beginning  remove text from multiple files  in filenames  remove all text following