Hi,
I have 2 different files as below;
FILE1.txt:
FILE F1 abc 2011.12 31-oct-2012 35
FILE F2 abc 2011.12 31-oct-2012 40
FILE F4 abc 2011.12 31-oct-2012 2
FILE2.txt:
FILE F1 abc 2011.12 31-oct-2012 25
FILE F2 abc 2011.12 31-jun-2013 40
FILE F3 abc 2011.12 31-jan-2014 4
In my 2nd file, a line is added/removed and some changes in the column value of line 1 and 2
I want to compare both the file and output the difference as below.
Old file: FILE1.txt
New file: FILE1.txt
F Name Version Old New Old New
=========================================== ==== ==== =========== ===========
F1 2011.12 35 25 31-oct-2012 NONE
F2 2011.12 40 40 31-oct-2012 31-jun-2013
F3 2011.12 -- 04 NONE 31-jun-2014
F4 2011.12 02 -- 31-oct-2012 NONE
Missing in New file
F4 2011.12 02 31-oct-2012
Missing in Old File
F3 2011.12 04 31-jun-2014
Please help.