Absolut Newbie

Reply

Join Date: Jun 2009
Posts: 1
Reputation: Kerry_suds is an unknown quantity at this point 
Solved Threads: 0
Kerry_suds Kerry_suds is offline Offline
Newbie Poster

Absolut Newbie

 
0
  #1
Jun 28th, 2009
This is the question, first I'd like to know if shell scripting could do this, if it can whats the best scripting language to use and any hints you can too. TIA.

The problem I have is this I need to do a lot of search and replaces. But they are kinda different. Let me explain.

Two files, a & b. What I want to do is do a search for "xxx" but the replace is from each consecutive line of file b.

eg file a
peter_xxx
john_xxx
james_xxx

file b
090
070
020

after search and replace...
peter_090
john_070
james_020

I really hope there is a way to do this. Many thanks K
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,331
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1453
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Absolut Newbie

 
0
  #2
Jun 28th, 2009
what operating system?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC