943,565 Members | Top Members by Rank

Ad:
Jun 28th, 2009
0

Absolut Newbie

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Kerry_suds is offline Offline
1 posts
since Jun 2009
Jun 28th, 2009
0

Re: Absolut Newbie

what operating system?
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,947 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Shell Scripting Forum Timeline: shell script
Next Thread in Shell Scripting Forum Timeline: Clicking Yes on Window





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC