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 08-29-2007
padarthy padarthy is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 15
Comparing two files..

Hai,

I am new to this forum..

I am having two files for compare..

1st file contains the values... like this

sourceFile:
Filename1 1234567
Filename2 2345678
Filename3 3456789

2nd file contains the values ..

destFile:
Filename2 5434567
Filename3 3456789


I have to compare sourceFile with destFile. And i have to sort sort the rows..which are same..

Output must be..

SucessTrans
Filename3 3456789

FailedTrans
Filename2
Filename1

can anyone please help me out ...