The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 06-22-2006
ajaybalki ajaybalki is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 2
UNIX Guru's help on diff

Hi ,
I wanted to find delata between two huge ( 8 GB ) files . Say file_TDY and file_YDY : These files are sorted based on a key .

I am using a command :
1)bdiff file_TDY file_YDY > diff_file
2) grep ' ^< ' diff_file > TDY_delta

I wanted only the changed records and newly added records file_TDY
with respect to file_YDY . But apparently even records that are not changed are also coming in the delta file .( Due to the difference in position of records) . How do I tackle this sitaution .

Thanks in Advance,
Ajay