Shell script to find/replace patterns

Suoritettu Julkaistu 5 vuotta sitten Maksettu toimituksen yhteydessä
Suoritettu Maksettu toimituksen yhteydessä

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

Projektin tunnus: #17704420

Tietoa projektista

11 ehdotusta Etäprojekti Aktiivinen 5 vuotta sitten

Myönnetty käyttäjälle:

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 1 päivässä
(2 Arvostelua)
1.6

11 freelanceria on tarjonnut keskimäärin $42 tähän työhön

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 1 päivässä
(37 arvostelua)
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 Lisää

$25 USD 1 päivässä
(16 arvostelua)
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 3 päivässä
(35 arvostelua)
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 Lisää

$15 USD 3 päivässä
(32 arvostelua)
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, Lisää

$66 USD 1 päivässä
(15 arvostelua)
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 1 päivässä
(0 arvostelua)
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 1 päivässä
(0 arvostelua)
0.0