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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-09-2007
amon amon is offline
Registered User
 

Join Date: Jan 2006
Posts: 71
compare 2 files..

Hello..I am trying to find solution for this:

I have 2 files

A and B

A:

1234
2345
3211
1111
5555
6666
7777
8888
9876


B:

1234
2345
3211
1111
5555
6666
9988
8899
2244


output should be:

9988
8899
2244

becouse that is difference between files.

I tryed with diff...also I did something with sdiff and then grep "\>" U know to see just lines that are in certain file...

can U help me with better solution..maybe awk??

thanks a lot..
Reply With Quote
Remove advertisements
!!
Forum Sponsor