UNIX Guru's help on diff


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting UNIX Guru's help on diff
# 1  
Old 06-22-2006
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
# 2  
Old 06-22-2006
have you tried the comm command?
# 3  
Old 06-22-2006
comm is not working with large files Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Diff in UNIX

Hi guys - I have two files that have random number values and I want to see what is available in file A and not in file B Here is what each file looks like: File A: 1 45 11 788 556 File B: 774 1 5589 788 10025 (4 Replies)
Discussion started by: DallasT
4 Replies

2. Shell Programming and Scripting

diff command in Unix

Hi I want to compare two rows in unix first value in row is 1.12 while value in other row is 000001.12. if i do normal diff this will come as difference...is it any way to overcome this? (1 Reply)
Discussion started by: sanranad
1 Replies

3. Solaris

Advice to become a unix guru?

Hello, I have recently completed my training for Solaris 10 and have a good understanding of the bases now. I am playing around with my system but can't do much since my knowledge is limited. I am looking for some projects or some threads where I can learn more and expand my knowledge step by... (16 Replies)
Discussion started by: saudsos
16 Replies

4. UNIX for Dummies Questions & Answers

diff between unix and linux

can some 1 tel me wat is difference between unix and linux. and from where i can download unix for free (5 Replies)
Discussion started by: rohansaurav
5 Replies

5. Shell Programming and Scripting

UNIX script issues - Plse help guru's

Hi, I have written the following UNIX for HP-UX 11i. The script basically checks for files older then 45mins in 2 repective directories and then sends and email to the administrator about them. Problem with the script is that I can run it from the command line and crontabtab but 80% of the... (2 Replies)
Discussion started by: budrito
2 Replies

6. Shell Programming and Scripting

can we diff 3 files in Unix

Dear ALL I need help in diff command can we do diff of 3 files .. I want to compare 3 files (1 Reply)
Discussion started by: getdpg
1 Replies

7. Shell Programming and Scripting

Diff between Unix and Windows

Hi All, In my work environment, our workis to run N number of SQL statements continously.. Actually we are in testing environment. And for this we write 100 of SQL's and execute each one after another at Windows SQL prompt. Some of the SQL's will be running for about 12 hrs also. ... (1 Reply)
Discussion started by: cheche
1 Replies

8. UNIX for Advanced & Expert Users

what do most Unix guru's use ? :D

I wanted to know what email app most Sun solaris / unix gurus use ? I have become quite NON microsoft in the last few months in my studying solaris.. thanks simon2000 (6 Replies)
Discussion started by: simon2000
6 Replies
Login or Register to Ask a Question