How to find the difference of two files and get a 3rd file with the newer information alone.
for example:
There are two files file1 and file2
file1
apple
mango
pear
file2
apple
mango
pear
cat
and
dog
I need a file with
fileout
cat
and
dog
how to achieve this with diff and patch.
are there any other way?
note: the files have millions of records.