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 -->
  #6 (permalink)  
Old 09-22-2008
akil akil is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 50
Hi ,
I have 2 files and want to group by 1st and 2nd column using perl

Code:
File A
SGD 8080000001 400
USD 8080000002 300
HK 8080000003 200


File B
SGD 8080000001 600
SGD 8080000002 200
HK 8080000004 200


I want one file where

File OUT
SGD 8080000001 1000
USD 8080000002 300
SGD 8080000002 200
HK 8080000003 200
HK 8080000004 200
Thanks,
Akil