I have two files. I want to copy source file to destionation file. If they are different, then I just want to copy different line not all file. In the below case, two line are same, but destination has extra line. How can I just delete last line of destination file?
For example:
Source File:
test1
test2
Destionation File:
test1
test2
test3
uniqmay be a good choice.