Fermé

copy and replace files using linux command

Hi, we use linux to send an update to an online unit we have to write files from one folder to another

The present script is

rm -rf /var/www/captive/* REMOVE THIS LINE?

cp -f ./captive/* /var/www/captive/

This however removes all files on /var/www/captive/ and then adds all new files from 'captive' folder to /var/www/captive/

What I want to do, is only replace some files, so basically, I create a folder called 'captive' add the files to it that I want to replace on /var/www/captive/ and it replaces them

Compétences : Linux

Voir plus : linux copy replace, copy replace linux, copy replace command linux, replace files linux, copy replace files linux, linux copy replace command, copy replace linux command, linux command copy replace, replace command linux, linux command copy replace files, linux replace files, linux replace, replace linux command, replace files linux command, linux copy replace files, replace linux, replace files command linux, linux copy files replace, command copy replace folder linux, linux command copy replace folder, copy replace command, copy replace, linux replace files command, copy replace linux files, copy linux

Concernant l'employeur :
( 91 commentaires ) moneyreagh, United Kingdom

N° du projet : #1666711

31 freelance ont fait une offre moyenne de 28 £ pour ce travail

osmanbsd

Thats a one line job. I will explain to you the details as well.

20 £ GBP en 1 jour
(74 Commentaires)
6.8
kram3r

Hello, i have extensive experience in system administration. I can perform this task and give guarantees of my work. Please check your private box for more informations.

20 £ GBP en 0 jours
(31 Commentaires)
5.0
bcsaba

Can do this for you,

20 £ GBP en 0 jours
(18 Commentaires)
4.0
roaima

Can do this for you. Please see my PM

110 £ GBP en 3 jours
(4 Commentaires)
3.6
arthurpalves

Good evening! Its a one line job, created in 1 minute. Please, check your PMB for more details.

20 £ GBP en 0 jours
(3 Commentaires)
3.1
wckfreelance

Used linux in countless ways. Ready to get this problem out of your way!

20 £ GBP en 1 jour
(1 Commentaire)
1.8
sumodirjo

Hi I'm an experienced Linux system administrator. have experience and skill in scripting. let me help :)

20 £ GBP en 0 jours
(2 Commentaires)
1.4
AuteliVenezuela

I have done this for my development environment, I can add you an extra if you wish

20 £ GBP en 1 jour
(0 Commentaires)
0.0
donislav

Hi Didn't get exactly the task but the way how you descibe is tells me you need easy 2 line script Please conact me and I will do that for you. Regards Donislav

20 £ GBP en 1 jour
(0 Commentaires)
0.0
vibhorjund

i have resolved the project.

21 £ GBP en 1 jour
(0 Commentaires)
0.0
eismann

Pretty straight forward task. Will be done in a few minutes.

20 £ GBP en 1 jour
(0 Commentaires)
0.0
SoftwareBits

Can be done easily.

20 £ GBP en 0 jours
(0 Commentaires)
0.0
spikyb0y

Check your PMB please.

20 £ GBP en 0 jours
(0 Commentaires)
0.0
neerajshrimali

Hello Sir, This is just one line change. I ll do it for you.

20 £ GBP en 2 jours
(0 Commentaires)
0.0
vitotafuni

nice to help you!

150 £ GBP en 0 jours
(0 Commentaires)
0.0
nokie

Hi, please consider me candidature. I do that kind of job it day by day.

20 £ GBP en 1 jour
(0 Commentaires)
0.0
filipilieski

I've been into Linux for some time now, and this is not a hard task for me. I've done it in a second. You should not get discouraged to try my solution because it is my first bid, instead you should give the new ones a Plus

20 £ GBP en 0 jours
(0 Commentaires)
0.0
VNikcevic

My PC runs linux ;-)

20 £ GBP en 0 jours
(0 Commentaires)
0.0
Frisler

I am working on UNIX domain from 4 years. So i can do your work smartly. For more information please see your pmb.

20 £ GBP en 1 jour
(0 Commentaires)
0.0
mohitshrm334

I will make this automate too including documentation. Thanks Mohit

45 £ GBP en 1 jour
(0 Commentaires)
1.8