Old.txt
contains
apple
orange
banana
And New.txt
contains
apple
orange
banana
grape
lemon
I can access new contents which are added to New.txt
using grep
command.
grep -Fxvf Old.txt New.txt > difference.txt
Now, difference.txt
contains
grape
lemon
In Windows, I have tried
findstr /rvc:Old.txt New.txt > difference.txt
to find the difference but it append contents of Old.txt
too. How can I write equivalent command in Windows?