Compare 2 sorted files
Hi all,
please give me the commands using which i can compare 2 sorted files and get the difference in third file, indiating where the difference is from either file1 or file2.
as:
File1 (Original file)
GARRY
JOHN
JULIE
SAM
---------------
File2
DEV
GARRY
JOHN
JOHNIEE
JULIE
RAMEE
SAM
SAMYEE
-------------------
OUTPUT in file3 should have :
DEV
JOHNIEE
RAMEE
SAMYEE
Using awk and diff/cmp commands.
|