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 05-29-2007
panknil panknil is offline
Registered User
  
 

Join Date: Apr 2007
Location: Kolkata
Posts: 83
Thumbs down Append Line From a File To Another File

Dear all,

i have a problem...
i have 2 files
first one is
A.txt

5268345674 ABCDEF1 ABC 10121 EXT
5265087087 ABCDEF3 ABC 10221 EXT
5268979998 ABCDEF4 ABC 10321 EXT

second one is
B.txt

10121 52658450 R1MEXI2 0
10221 52653889 R1SLRC2 0
10321 52657319 R1SAFE1 0

now i want the output like

5268345674 ABCDEF1 ABC 10121 EXT 52658450 R1MEXI2 0
5265087087 ABCDEF3 ABC 10221 EXT 52653889 R1SLRC2 0
5268979998 ABCDEF4 ABC 10321 EXT 52657319 R1SAFE1 0

in the output file only the first field from B.txt i want to remove...

Like the above output using awk or shell or sed etc

Thanks in advance
Regards,
Pankaj