Shell script to find/replace patterns

Completed Posted 5 years ago Paid on delivery
Completed Paid on delivery

goal: Replace hostnames in a set of xml files

I will have two inventory files (old hosts and new hosts)

format :

cat [login to view URL]

hosts (2):

[login to view URL]

[login to view URL]

cat [login to view URL]

hosts (2):

[login to view URL]

[login to view URL]

1)Step 1 is to change hosts to this format example: ip-100-14-184-237

2)find and replace in all xml files that match first host in [login to view URL] with the first host in [login to view URL], second host in old [login to view URL] with the second host in [login to view URL] and so on. (loop)

Linux PHP Python Shell Script XML

Project ID: #17704420

About the project

11 proposals Remote project Active 5 years ago

Awarded to:

xRow

Hello, Please tell me how is more convenient to you, for me to create a config file where you can put all the paths to the files and run the script or to pass file locations as arguments to the script?

$20 USD in 1 day
(2 Reviews)
1.6

11 freelancers are bidding on average $42 for this job

inovativeeyes

Hello Yes, Sure! I am ready to start! I am having expertise in Linux, PHP, Python, Shell Script, XML. Kindly get back to me Thanks Vijay

$40 USD in 1 day
(37 Reviews)
5.9
wizard24h

hello sir I see you want to create a pattern matching and replacing script for your files this is the easiest thing in the world and I can do it using regex + file handlers Please if you're interested contact me an More

$25 USD in 1 day
(16 Reviews)
5.5
AVKor

Hello, I'm an expert in in Linux (18 years of experience; Debian, Ubuntu, CentOS and many others) and bash/shell scripting. Please look at my profile.

$30 USD in 3 days
(35 Reviews)
5.0
MuhammadAliAkbar

Hey, I would love to work on this project. I am a computer scientist this problem it's very easy to tackle with the right solution that I'll provide to you. Message me with the details so we can start working right aw More

$15 USD in 3 days
(32 Reviews)
4.4
EasyDigiSoft

Hi there. I am professional php and wordpress developer. I've been working on many projects like this and I always finish everything with success.I would like to work on this project. Lets talk more about the details, More

$66 USD in 1 day
(15 Reviews)
4.1
chuyencn

Dear sir, I can write this shellscript for you in less than a day, just 2-3 hours for support further... thanks an best regards...

$40 USD in 1 day
(0 Reviews)
0.0
nguyenmt

I want to support in long-term for the requirement like that. It is simple to me and i can easy to finish it in time.

$25 USD in 1 day
(0 Reviews)
0.0