The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-23-2002
blt123 blt123 is offline
Registered User
  
 

Join Date: Feb 2002
Posts: 19
Question diff 2 files; output diff's to 3rd file

Hello,
I want to compare two files. All records in file 2 that are not in file 1 should be output to file 3.

For example:

file 1
123
1234
123456

file 2
123
2345
23456

file 3 should have
2345
23456

I have looked at diff, bdiff, cmp, comm, diff3 without any luck!

Thanks for your help
Barbara