Terminé

Code Replacer

I have some code I need replaced on +/- 10,000 files... (in various subdirectories, so replacement will need to be recursive)

Example of directory structure:

/usr/home/www/143/www/2003pics/day1

/usr/home/www/143/www/2003pics/day2

/usr/home/www/143/www/2003pics/day3

etc...

I would like to go to the 2003pics directory and run the script that will replace all the code on all the html files in that directory and als have it change the same code in the directories under it (day1, day2, etc).

Note: There are actually many sub-directories under different names.

## Deliverables

**what I have now (the old code):

**<a href='[url removed, login to view]' target='_blank'>

<img src=

'[url removed, login to view]:2&target=_blank&n=a538f097' border='0' alt=''></a>

**What I want to replace above with (the new code):**

<script language='JavaScript' type='text/javascript'>

<!--

if (!document.phpAds_used) document.phpAds_used = ',';

[url removed, login to view] ("<" + "script language='JavaScript' type='text/javascript' src='");

[url removed, login to view] ("[url removed, login to view]");

[url removed, login to view] ("&what=zone:3");

[url removed, login to view] ("&exclude=" + document.phpAds_used);

if ([url removed, login to view])

[url removed, login to view] ("&referer=" + escape([url removed, login to view]));

[url removed, login to view] ("'><" + "/script>");

//-->

</script>

<noscript><a href='[url removed, login to view]' target='_blank'>

<img src='[url removed, login to view]:3&n=a7938262' border='0' alt=''></a></noscript>

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Basic directions on how to use program or script

3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).

## Platform

I have a FreeBSD server and can run shell commands (cshell), or even perl from the command line.

Compétences : Ingénierie, Linux, MySQL, Perl, PHP, Architecture Logicielle, Tests de Logiciels, UNIX, Hébergement Web, Administration de Site Web, Tests de Sites Web

en voir plus : src program, run shell script from php, recursive program example, how to write code, code line, code 30, example shell script, basic shell script, recursive, escape, shell script perl, perl script shell script, code copyright, write code language, freebsd source, javascript php source code, recursive php, work home perl, script change referer, als

Concernant l'employeur :
( 7 commentaires ) United States

Nº du projet : #3055012

Décerné à:

jetmark

See private message.

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 4 jours
(1 Évaluation)
0.5

29 freelance font une offre moyenne de $45 pour ce travail

softservicesvw

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(336 Commentaires)
7.7
ndima

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(96 Commentaires)
6.6
bahe

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(147 Commentaires)
6.5
kdz13

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(74 Commentaires)
6.3
idleswell

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(179 Commentaires)
6.0
gagikb6321

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(5 Commentaires)
5.9
inguza

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(22 Commentaires)
5.7
bukhtik

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(22 Commentaires)
5.1
gopikap

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(54 Commentaires)
5.1
flashmastersvw

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(11 Commentaires)
4.8
artemzhavoronkov

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(1 Évaluation)
4.5
vw945703vw

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(23 Commentaires)
4.2
scottyallen

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(8 Commentaires)
4.1
abhimanyuvw

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(32 Commentaires)
3.7
tvernonvw

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(18 Commentaires)
3.5
rpasay

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(12 Commentaires)
3.2
ddavw

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(3 Commentaires)
2.2
bwsolutionsvw

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(3 Commentaires)
1.6
mineraysystems

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(2 Commentaires)
1.4
ealicli

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(0 Commentaires)
0.0