GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Script for changing link codes -server solution (https://gfy.com/showthread.php?t=338450)

Houdini 08-09-2004 02:14 PM

Script for changing link codes -server solution
 
I need to change 1000's of link codes, anyone know of a good search and replace software, script or command to do this with? Can't seem to find anything on the server side.

wdsguy 08-09-2004 02:15 PM

I would like to know as well

SmokeyTheBear 08-09-2004 03:01 PM

Well, as nice as it is to have such a piece of software , it might be more helpfull for you to plan ahead.

use external java to hold your banners, then when you need to change banners or ads, you can just swap the main java files with the information.

flashfreak 08-09-2004 04:04 PM

very simple, type in a *nix console:

find . -type f | xargs perl -pi.bak -e 's/OLDLINK/NEWLINK/g'

it works on all your dirs tree recursively and makes backups too.

Houdini 08-09-2004 05:53 PM

Quote:

Originally posted by flashfreak
very simple, type in a *nix console:

find . -type f | xargs perl -pi.bak -e 's/OLDLINK/NEWLINK/g'

it works on all your dirs tree recursively and makes backups too.

Thanks, very much appreciated.

NiteRain 08-09-2004 06:01 PM

Quote:

Originally posted by Houdini
I need to change 1000's of link codes, anyone know of a good search and replace software, script or command to do this with? Can't seem to find anything on the server side.
Yeah, had to write a program that manages all my ads, my link codes, etc, I've been thinking about selling it, but didn't think anyone was looking for such a thing.


All times are GMT -7. The time now is 08:41 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123