Completed

Shell script to find/replace patterns

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)

Skills: Linux, PHP, Python, Shell Script, XML

See more: shell script delete lines, shell script remove single line file, executing shell script centos, unix replace string in file vi editor, sed replace string with variable, linux replace string in files recursively, shell script replace string, sed search and replace in file, sed find and replace multiple files, sed replace regex, bash replace string, deleting lines shell script, common production support shell script, centos shell script, shell script add line file, shell script remove line beginning, shell script add lines file, cgi shell script textarea, shell script read lines file, linux shell script replace line

About the Employer:
( 1 review ) Herndon, United States

Project ID: #17704420

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
(0 Reviews)
0.0
barslmn

Hey, I am free right now so I can start immediately. Pm your files if you're interested. Thanks, Barış Salman

$25 USD in 1 day
(0 Reviews)
0.0

12 freelancers are bidding on average $41 for this job

$83 USD in 1 day
(912 Reviews)
8.5
$94 USD in 1 day
(396 Reviews)
7.0
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
(15 Reviews)
4.9
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
(22 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
(14 Reviews)
4.0
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
(1 Review)
2.7
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
(12 Reviews)
2.7
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
$25 USD in 10 days
(0 Reviews)
0.0