I am using diff file1 file2
and getting memory exhausted exception. file1 and file 2 are 10 GB each.
I tried diff --speed-large-files file1 file2
but that didn't work.
How can I compare two files file1 and file2 and see what changed in file2 and write the changed content on file2 to another file?