Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Diff'ing datafiles

Status
Not open for further replies.

IMAUser

Technical User
May 28, 2003
121
CH
Hi,

Is there a way to write a script which reads line by line fromtwo different files, compares the two inputs and reports if there are different.

Thanks.
 
'man comm'

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Why not just use diff or cmp

Mike

Unix *is* user friendly. It's just selective about who its friends are.
 
You can also use sdiff. From the man pages:

sdiff Command

Purpose

Compares two files and displays the differences in a side-by-side format.


Regards,
Chuck
 
Sorry, forgot to mention that's the man pages for AIX 5.3. Check to see if you have sdiff command on your OS.

Regards,
Chuck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top