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
replacing a pattern in a file ROOZ Shell Programming and Scripting 6 06-11-2008 01:04 PM
Replacing a line in a file - HELP!!! maxmave Shell Programming and Scripting 1 06-05-2008 12:55 AM
replacing string in an XML file subin_bala Shell Programming and Scripting 2 06-03-2008 08:14 AM
Replacing URL in a file with space dsrookie UNIX for Dummies Questions & Answers 5 02-29-2008 04:58 AM
have a file with 300 columns dummy_needhelp Shell Programming and Scripting 4 11-05-2007 01:08 AM

Closed Thread
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
  #1 (permalink)  
Old 06-23-2008
manneni prakash manneni prakash is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 30
Replacing columns into another file

Hi, I have input file.

File1:

Seqno Name
121 name1
122 name2
123 name3
124 name4

We will send the file1 to some other team. They will replace name column with place in file1 and send back to us as file2.

file2:

Seqno Place

121 place1
122 place2
124 place3

And then we will replace the name with place based on row-id and output file should only contain the row-id and place as shown below.

Output:

File1:

Row-id Place
121 place1
122 place2
123
124 place4


Please help me how to do it. Thanks in advance.
  #2 (permalink)  
Old 06-23-2008
radoulov's Avatar
radoulov radoulov is offline Forum Staff  
addict
  
 

Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 2,915
You want 124 place3 or 124 place4 in the final output?
  #3 (permalink)  
Old 06-23-2008
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is online now Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
this is the same question posted here
Closed Thread

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 06:08 AM.


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