Home » Infrastructure » Unix » file comparision in Unix scripting
file comparision in Unix scripting [message #97986] Wed, 27 August 2003 08:08 Go to next message
Messages: 35
Registered: July 1999
Hi Guys,

Can u suggest me how to compare two files in unix scripting?
I have already tried diff, cmp command.But it seems not good. It is giving comparision but extra addational information. I want exact difference between files.
Anybody has sample script?
It's urgent.

My problem:
I have one file with 100 200 300 400 data.Second file has 100 200 300 400 500. I need to copmare this two files. And result should be only 500.

Thank in advance.

Re: file comparision in Unix scripting [message #98064 is a reply to message #97986] Wed, 14 January 2004 07:45 Go to previous message
Messages: 60
Registered: December 1998
comm command should be a good base to fit your needs
Previous Topic: Kernel Configuration
Next Topic: installaing oracle 8i on sco unixware 7.1
Goto Forum:

Current Time: Sat Jan 16 09:20:58 CST 2021