I need to compare the above two files in unix, as in the output should only tell the difference in contents as I should get only the line
1 ( from 2.del) , rest all lines are present in the both files.
I tried by fetching line by line and comparing in the second file, but its taking a huge time. I have the file size in GB's
Please advise
Why don't you do as i150371485 proposed: read the cited man pages and give it a shot on your sample files? I promise: you will find the discrepant rows.