Script for changing link codes -server solution

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Houdini
    Confirmed User
    • Dec 2001
    • 1651

    #1

    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
    Ryde or Die
    • Dec 2002
    • 19568

    #2
    I would like to know as well

    Comment

    • SmokeyTheBear
      ►SouthOfHeaven
      • Jun 2004
      • 28609

      #3
      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.
      hatisblack at yahoo.com

      Comment

      • flashfreak
        Confirmed User
        • Jun 2002
        • 4396

        #4
        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.
        SEO Mogul | ICQ: 163671223

        Comment

        • Houdini
          Confirmed User
          • Dec 2001
          • 1651

          #5
          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.

          Comment

          • NiteRain
            Confirmed User
            • Jul 2002
            • 600

            #6
            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.
            AIM: PerlScriptor

            Comment

            Working...