| | |
Absolut Newbie
![]() |
•
•
Join Date: Jun 2009
Posts: 1
Reputation:
Solved Threads: 0
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
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
- As a newbie, where i should start from in linux? (Getting Started and Choosing a Distro)
- Questions about building a system (was: newbie) (Troubleshooting Dead Machines)
- Best free C/C++ compiler for a newbie? (C++)
- help newbie alert needs help with login page (ASP.NET)
- newbie needs help, basic mfc stuff (C++)
- Hello, newbie here... (Geeks' Lounge)
- Book For Newbie (C++)
- Newbie - how do I start C++ programming? (C++)
- PHP newbie, project feasibility (PHP)
- How to network two Win98 machines (Networking Hardware Configuration)
Other Threads in the Shell Scripting Forum
- Previous Thread: shell script
- Next Thread: Change Password In A Shell Script
| Thread Tools | Search this Thread |






