Solved comparing files and list out the different value in output

October 11, 2012 at 21:05:03
Specs: Windows 7
Dear all.

Sorry to interrupt, but I do have no idea about this
I am new developer in linux system
so I would like you guys could give me a hand

Thanks

ok the question is
Example
a.txt > cat, dog, human, apple


b.txt > cat apple


comparing with a.txt and b.txt ………dog and human is missing on b.txt .. the output result list out : dog , humen … since b.txt is missing as comparing with a.txt

How can i develop ?


See More: comparing files and list out the different value in output

Report •

#1
October 12, 2012 at 06:59:30
✔ Best Answer
diff a.txt b.txt|tail -1|sed 's/^> //'

Report •

#2
October 15, 2012 at 00:02:55
Thank you very much :)

Report •
Related Solutions


Ask Question