The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Append text at end of the first line in a file catgovind Shell Programming and Scripting 7 05-01-2008 08:33 AM
Append to end of each line of file without a temp file. rorey_breaker Shell Programming and Scripting 4 04-03-2008 11:11 AM
How to Append a Value to each line of the file dsshishya UNIX for Dummies Questions & Answers 11 03-21-2008 02:48 PM
Append a field to the end of each line of a file based on searching another file. ultimate Shell Programming and Scripting 2 03-29-2005 11:21 AM
Large file need to append to each line r1500 UNIX for Dummies Questions & Answers 1 10-14-2003 11:48 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 05-29-2007
panknil panknil is offline
Registered User
  
 

Join Date: Apr 2007
Location: Kolkata
Posts: 84
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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:44 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0