I had two text files one is whole and the other is part.txt
Here is the content of whole.txt
I have the below code to do the job.
Code: Select all
findstr /x /v /G: part.txt whole.txt >new.txt
If I modified the part.txt as below
run the above script again it shall delete the lines based upon the part.txt since /X Print lines that match exactly.
However, I only have part.txt as below